From b7d7408bce40f63533fa7459515287d825451221 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Mon, 24 Mar 2025 09:33:11 +0000 Subject: [PATCH] Merged in fix/destinationpages-flag (pull request #1608) Fix: Move destionation pages behind feature flag * Fix: Move destionation pages behind feature flag Approved-by: Erik Tiekstra --- .../[lang]/(live)/(public)/[contentType]/[uid]/page.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx index 8c5552988..a4dbf7231 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/[contentType]/[uid]/page.tsx @@ -63,14 +63,23 @@ export default async function ContentTypePage({ case PageContentTypeEnum.loyaltyPage: return case PageContentTypeEnum.destinationOverviewPage: + if (env.HIDE_FOR_NEXT_RELEASE) { + return notFound() + } return case PageContentTypeEnum.destinationCountryPage: + if (env.HIDE_FOR_NEXT_RELEASE) { + return notFound() + } return ( }> ) case PageContentTypeEnum.destinationCityPage: + if (env.HIDE_FOR_NEXT_RELEASE) { + return notFound() + } return ( }>