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:
@@ -25,8 +25,9 @@ export async function GET(request: NextRequest) {
|
||||
throw new Error("[WARMUP] Invalid language provided")
|
||||
}
|
||||
|
||||
const hotels = await serverClient().hotel.hotels.getAllHotels.get({
|
||||
const hotels = await serverClient().hotel.hotels.getDestinationsMapData({
|
||||
lang: parsedLang.data,
|
||||
warmup: true,
|
||||
})
|
||||
return NextResponse.json(hotels)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user