diff --git a/apps/scandic-web/.env.local.example b/apps/scandic-web/.env.local.example index e60d40f3d..981bcdb1c 100644 --- a/apps/scandic-web/.env.local.example +++ b/apps/scandic-web/.env.local.example @@ -53,6 +53,4 @@ DTMC_ENTRA_ID_CLIENT="" DTMC_ENTRA_ID_ISSUER="" DTMC_ENTRA_ID_SECRET="" -HOTEL_BRANDING="0" # 0 - disabled, 1 - enabled - NEW_STAYS_ON_MY_PAGES="true" diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx index e978f9084..637135a64 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx +++ b/apps/scandic-web/app/[lang]/(live)/(public)/(contentTypes)/hotel_page/[uid]/page.tsx @@ -8,7 +8,6 @@ import { } from "@scandic-hotels/common/utils/theme" import { setTheme } from "@scandic-hotels/common/utils/theme/serverContext" -import { env } from "@/env/server" import { getHotel, getHotelPage } from "@/lib/trpc/memoizedRequests" import HotelMapPage from "@/components/ContentType/HotelMapPage" @@ -46,9 +45,10 @@ export default async function HotelPagePage( return notFound() } - const hotelTheme = env.HOTEL_BRANDING - ? getThemeByHotel(hotelPageData.hotel_page_id, hotelData.hotel.hotelType) - : DEFAULT_THEME + const hotelTheme = getThemeByHotel( + hotelPageData.hotel_page_id, + hotelData.hotel.hotelType + ) setTheme(hotelTheme) diff --git a/apps/scandic-web/env/server.ts b/apps/scandic-web/env/server.ts index e3f36661c..b4a995228 100644 --- a/apps/scandic-web/env/server.ts +++ b/apps/scandic-web/env/server.ts @@ -91,11 +91,6 @@ export const env = createEnv({ * We currently have the secret in local and test environments. */ DTMC_ENTRA_ID_SECRET: z.string().optional(), - HOTEL_BRANDING: z - .string() - .refine((s) => s === "1" || s === "0") - .transform((s) => s === "1") - .default("0"), CHATBOT_LIVE_LANGS: z .string() .optional() @@ -164,7 +159,6 @@ export const env = createEnv({ DTMC_ENTRA_ID_CLIENT: process.env.DTMC_ENTRA_ID_CLIENT, DTMC_ENTRA_ID_ISSUER: process.env.DTMC_ENTRA_ID_ISSUER, DTMC_ENTRA_ID_SECRET: process.env.DTMC_ENTRA_ID_SECRET, - HOTEL_BRANDING: process.env.HOTEL_BRANDING, CHATBOT_LIVE_LANGS: process.env.CHATBOT_LIVE_LANGS, NEW_STAYS_ON_MY_PAGES: process.env.NEW_STAYS_ON_MY_PAGES, SEO_INERT: process.env.SEO_INERT,