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:
|
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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user