update nextjs to 15

This commit is contained in:
Max Peintner
2024-11-22 11:25:03 +01:00
parent 19c310f83b
commit 837cd4f674
37 changed files with 775 additions and 547 deletions

View File

@@ -13,11 +13,12 @@ import { Session } from "@zitadel/proto/zitadel/session/v2/session_pb";
import { HumanUser, User } from "@zitadel/proto/zitadel/user/v2/user_pb";
import { getLocale, getTranslations } from "next-intl/server";
export default async function Page({
searchParams,
}: {
searchParams: Record<string | number | symbol, string | undefined>;
}) {
export default async function Page(
props: {
searchParams: Promise<Record<string | number | symbol, string | undefined>>;
}
) {
const searchParams = await props.searchParams;
const locale = getLocale();
const t = await getTranslations({ locale, namespace: "password" });
const tError = await getTranslations({ locale, namespace: "error" });