Merged in chore/remove-show-signup-flag (pull request #2507)
chore: Remove no longer needed SHOW_SIGNUP_FLOW flag * chore: Remove no longer needed SHOW_SIGNUP_FLOW flag Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { headers } from "next/headers"
|
||||
import { notFound, redirect } from "next/navigation"
|
||||
import { redirect } from "next/navigation"
|
||||
|
||||
import { overview } from "@scandic-hotels/common/constants/routes/myPages"
|
||||
import { isSignupPage } from "@scandic-hotels/common/constants/routes/signup"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
|
||||
import ContentPage from "@/components/ContentType/StaticPages/ContentPage"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
import { isLoggedInUser } from "@/utils/isLoggedInUser"
|
||||
@@ -19,10 +17,6 @@ export default async function ContentPagePage() {
|
||||
const isSignupRoute = isSignupPage(pathname)
|
||||
|
||||
if (isSignupRoute) {
|
||||
if (!env.SHOW_SIGNUP_FLOW) {
|
||||
notFound()
|
||||
}
|
||||
|
||||
const isLoggedIn = await isLoggedInUser()
|
||||
|
||||
if (isLoggedIn) {
|
||||
|
||||
Reference in New Issue
Block a user