Merged in chore/upgrade-next (pull request #3124)
Upgrade next@15.5.6 * chore: upgrade next@15.5.6 * chore: upgrade turborepo@2.6.1 * fix typings for scandic-web * fix: set correct type for pages * cleanup * fix more route.ts typing issues * Merge branch 'master' of bitbucket.org:scandic-swap/web into chore/upgrade-next * explicitly import the types Approved-by: Linus Flood
This commit is contained in:
@@ -9,7 +9,7 @@ import type { NextRequest } from "next/server"
|
||||
|
||||
export async function GET(
|
||||
request: NextRequest,
|
||||
props: { params: Promise<{ lang: string }> }
|
||||
props: RouteContext<"/api/web/add-card-callback/[lang]">
|
||||
) {
|
||||
const addCardLogger = createLogger("add-card")
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export const revalidate = 28_800 // 8 hours
|
||||
|
||||
export async function GET(
|
||||
_request: Request,
|
||||
{ params }: { params: Promise<{ country: string; city: string }> }
|
||||
{ params }: RouteContext<"/api/web/destinations/[country]/[city]">
|
||||
) {
|
||||
try {
|
||||
const { country: countryParam, city: cityParam } = await params
|
||||
|
||||
@@ -26,7 +26,7 @@ export const revalidate = 28_800 // 8 hours
|
||||
|
||||
export async function GET(
|
||||
_request: Request,
|
||||
{ params }: { params: Promise<{ country: string }> }
|
||||
{ params }: RouteContext<"/api/web/destinations/[country]">
|
||||
) {
|
||||
try {
|
||||
const { country: countryParam } = await params
|
||||
|
||||
Reference in New Issue
Block a user