feat(SW-1562): enable ContentPage, except signup pages.
This commit is contained in:
@@ -38,17 +38,9 @@ export default async function ContentTypePage({
|
||||
case PageContentTypeEnum.collectionPage:
|
||||
return <CollectionPage />
|
||||
case PageContentTypeEnum.contentPage: {
|
||||
const isSignupRoute = isSignupPage(pathname)
|
||||
|
||||
if (env.HIDE_FOR_NEXT_RELEASE) {
|
||||
// Hide content pages for next release for non-signup routes.
|
||||
if (!isSignupRoute) {
|
||||
return notFound()
|
||||
}
|
||||
}
|
||||
|
||||
// Hide content pages for signup routes when signup flow is disabled.
|
||||
if (!env.SHOW_SIGNUP_FLOW) {
|
||||
// Hide content pages for signup routes when signup flow is disabled.
|
||||
const isSignupRoute = isSignupPage(pathname)
|
||||
if (isSignupRoute) {
|
||||
return notFound()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user