feat(SW-1562): enable ContentPage, except signup pages.

This commit is contained in:
Michael Zetterberg
2025-02-11 12:40:10 +01:00
parent e874cd9b9c
commit 967c776ab8

View File

@@ -38,17 +38,9 @@ export default async function ContentTypePage({
case PageContentTypeEnum.collectionPage: case PageContentTypeEnum.collectionPage:
return <CollectionPage /> return <CollectionPage />
case PageContentTypeEnum.contentPage: { case PageContentTypeEnum.contentPage: {
const isSignupRoute = isSignupPage(pathname) // Hide content pages for signup routes when signup flow is disabled.
if (env.HIDE_FOR_NEXT_RELEASE) {
// Hide content pages for next release for non-signup routes.
if (!isSignupRoute) {
return notFound()
}
}
if (!env.SHOW_SIGNUP_FLOW) { if (!env.SHOW_SIGNUP_FLOW) {
// Hide content pages for signup routes when signup flow is disabled. const isSignupRoute = isSignupPage(pathname)
if (isSignupRoute) { if (isSignupRoute) {
return notFound() return notFound()
} }