Merged in fix/destinations-speed-test (pull request #1704)
Feat(destination pages): Performance improvements * fix/destinations: try cache full response * Added more caching * Removed unsed env car * wip * merge master * wip * wip * wip * Renaming Approved-by: Michael Zetterberg
This commit is contained in:
8
apps/scandic-web/env/server.ts
vendored
8
apps/scandic-web/env/server.ts
vendored
@@ -168,13 +168,6 @@ export const env = createEnv({
|
||||
// transform to boolean
|
||||
.transform((s) => s === "true")
|
||||
.default("false"),
|
||||
|
||||
CACHE_TIME_HOTELDATA: z
|
||||
.number()
|
||||
.default(30 * 60)
|
||||
.transform((val) =>
|
||||
process.env.CMS_ENVIRONMENT === "test" ? 5 * 60 : val
|
||||
),
|
||||
CACHE_TIME_HOTELS: z
|
||||
.number()
|
||||
.default(TWENTYFOUR_HOURS)
|
||||
@@ -284,7 +277,6 @@ export const env = createEnv({
|
||||
SAS_ENABLED: process.env.SAS,
|
||||
SAS_POINT_TRANSFER_ENABLED: process.env.SAS_POINT_TRANSFER_ENABLED,
|
||||
|
||||
CACHE_TIME_HOTELDATA: process.env.CACHE_TIME_HOTELDATA,
|
||||
CACHE_TIME_HOTELS: process.env.CACHE_TIME_HOTELS,
|
||||
CACHE_TIME_CITY_SEARCH: process.env.CACHE_TIME_CITY_SEARCH,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user