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:
Joakim Jäderberg
2025-11-13 07:33:56 +00:00
parent ce469bc4b4
commit dc53ab9245
64 changed files with 746 additions and 404 deletions

View File

@@ -12,10 +12,11 @@ import type { Lang } from "@scandic-hotels/common/constants/language"
export async function GET(
request: NextRequest,
context: { params: Promise<{ lang: Lang }> }
context: RouteContext<"/[lang]/login">
) {
const contextParams = await context.params
const params = await context.params
const publicURL = getPublicURL(request)
const lang = params.lang as Lang
let redirectHeaders: Headers | undefined = undefined
let redirectTo: string
@@ -61,7 +62,7 @@ export async function GET(
/** Record<string, any> is next-auth typings */
const params = {
ui_locales: SAS_LANGUAGE_MAP[contextParams.lang],
ui_locales: SAS_LANGUAGE_MAP[lang],
scope: ["openid", "profile", "email", "offline_access"].join(" "),
} satisfies Record<string, string>