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