From 967c776ab82e6f7b02662b14a58c61ddb47323cf Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Tue, 11 Feb 2025 12:40:10 +0100 Subject: [PATCH] feat(SW-1562): enable ContentPage, except signup pages. --- .../(live)/(public)/[contentType]/[uid]/page.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx index ba5181c3d..176dc48c0 100644 --- a/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx +++ b/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx @@ -38,17 +38,9 @@ export default async function ContentTypePage({ case PageContentTypeEnum.collectionPage: return 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() }