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:
Chuma Mcphoy (We Ahead)
2025-07-03 07:56:50 +00:00
parent a7ac79e429
commit d32b8c4333
3 changed files with 1 additions and 16 deletions

View File

@@ -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) {