Hide hotelreservation route and contentPages
This commit is contained in:
@@ -23,6 +23,9 @@ export default async function ContentTypePage({
|
|||||||
|
|
||||||
switch (params.contentType) {
|
switch (params.contentType) {
|
||||||
case "content-page":
|
case "content-page":
|
||||||
|
if (env.HIDE_FOR_NEXT_RELEASE) {
|
||||||
|
return notFound()
|
||||||
|
}
|
||||||
return <ContentPage />
|
return <ContentPage />
|
||||||
case "loyalty-page":
|
case "loyalty-page":
|
||||||
return <LoyaltyPage />
|
return <LoyaltyPage />
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
import { notFound } from "next/navigation"
|
||||||
|
|
||||||
|
import { env } from "@/env/server"
|
||||||
|
|
||||||
import styles from "./layout.module.css"
|
import styles from "./layout.module.css"
|
||||||
|
|
||||||
import { LangParams, LayoutArgs } from "@/types/params"
|
import { LangParams, LayoutArgs } from "@/types/params"
|
||||||
@@ -5,5 +9,8 @@ import { LangParams, LayoutArgs } from "@/types/params"
|
|||||||
export default function HotelReservationLayout({
|
export default function HotelReservationLayout({
|
||||||
children,
|
children,
|
||||||
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
|
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
|
||||||
|
if (env.HIDE_FOR_NEXT_RELEASE) {
|
||||||
|
return notFound()
|
||||||
|
}
|
||||||
return <div className={styles.layout}>{children}</div>
|
return <div className={styles.layout}>{children}</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user