Merged in fix/hotel-branding-env (pull request #3239)

Fix/hotel branding env

* feat(env): removed hotel branding env variable

* .


Approved-by: Erik Tiekstra
Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
This commit is contained in:
Linus Flood
2025-11-27 13:08:42 +00:00
parent 86e15a58c6
commit a2c517db2c
3 changed files with 4 additions and 12 deletions

View File

@@ -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)