feat: sw-929 show booking widget on hotelreservation path and separate env for sitewide alerts

This commit is contained in:
Linus Flood
2024-11-20 12:40:23 +01:00
parent b7ffc8588d
commit 9f982dcea6
10 changed files with 72 additions and 7 deletions

View File

@@ -12,7 +12,10 @@ export default function HotelReservationLayout({
}: React.PropsWithChildren<LayoutArgs<LangParams>> & {
sidePeek: React.ReactNode
}) {
if (env.HIDE_FOR_NEXT_RELEASE) {
if (
env.HIDE_FOR_NEXT_RELEASE &&
env.HIDE_BOOKINGWIDGET_HOTELRESERVATION_PATH
) {
return notFound()
}
return (