Merged in fix/my-stay-webview-3 (pull request #2281)

feat/my-stay-webview - check if user else redirect to refresh page

* feat/my-stay-webview - check if user else redirect to refresh page


Approved-by: Joakim Jäderberg
This commit is contained in:
Linus Flood
2025-06-04 06:26:42 +00:00
parent 93b76d405a
commit 800b329998
8 changed files with 36 additions and 22 deletions

View File

@@ -0,0 +1,23 @@
import { env } from "@/env/server"
import type { LangParams, PageArgs } from "@/types/params"
export async function generateMetadata(props: PageArgs<LangParams>) {
const params = await props.params
return {
robots: {
index: env.isLangLive(params.lang),
follow: env.isLangLive(params.lang),
},
}
}
export default function HotelReservationLayout({
children,
}: React.PropsWithChildren) {
if (env.NEW_SITE_LIVE_STATUS === "NOT_LIVE") {
return null
}
return <>{children}</>
}