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
This commit is contained in:
Linus Flood
2025-03-24 09:33:11 +00:00
parent 74c5b47319
commit b7d7408bce

View File

@@ -63,14 +63,23 @@ export default async function ContentTypePage({
case PageContentTypeEnum.loyaltyPage: case PageContentTypeEnum.loyaltyPage:
return <LoyaltyPage /> return <LoyaltyPage />
case PageContentTypeEnum.destinationOverviewPage: case PageContentTypeEnum.destinationOverviewPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return <DestinationOverviewPage /> return <DestinationOverviewPage />
case PageContentTypeEnum.destinationCountryPage: case PageContentTypeEnum.destinationCountryPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return ( return (
<Suspense fallback={<DestinationCountryPageSkeleton />}> <Suspense fallback={<DestinationCountryPageSkeleton />}>
<DestinationCountryPage /> <DestinationCountryPage />
</Suspense> </Suspense>
) )
case PageContentTypeEnum.destinationCityPage: case PageContentTypeEnum.destinationCityPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return ( return (
<Suspense fallback={<DestinationCityPageSkeleton />}> <Suspense fallback={<DestinationCityPageSkeleton />}>
<DestinationCityPage /> <DestinationCityPage />