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:
return <LoyaltyPage />
case PageContentTypeEnum.destinationOverviewPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return <DestinationOverviewPage />
case PageContentTypeEnum.destinationCountryPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return (
<Suspense fallback={<DestinationCountryPageSkeleton />}>
<DestinationCountryPage />
</Suspense>
)
case PageContentTypeEnum.destinationCityPage:
if (env.HIDE_FOR_NEXT_RELEASE) {
return notFound()
}
return (
<Suspense fallback={<DestinationCityPageSkeleton />}>
<DestinationCityPage />