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:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user