fix(deps): update nextjs monorepo to v15 (major) (#406)

* fix(deps): update nextjs monorepo to v15

* fix code for v15 upgrade

* fix param await

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: lukasIO <mail@lukasseiler.de>
This commit is contained in:
renovate[bot] 2025-04-08 08:09:47 +02:00 committed by GitHub
parent fca845d3a4
commit 17ff1d6092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 366 additions and 276 deletions

View File

@ -2,14 +2,14 @@ import { videoCodecs } from 'livekit-client';
import { VideoConferenceClientImpl } from './VideoConferenceClientImpl';
import { isVideoCodec } from '@/lib/types';
export default function CustomRoomConnection(props: {
searchParams: {
export default async function CustomRoomConnection(props: {
searchParams: Promise<{
liveKitUrl?: string;
token?: string;
codec?: string;
};
}>;
}) {
const { liveKitUrl, token, codec } = props.searchParams;
const { liveKitUrl, token, codec } = await props.searchParams;
if (typeof liveKitUrl !== 'string') {
return <h2>Missing LiveKit URL</h2>;
}

View File

@ -2,25 +2,32 @@ import * as React from 'react';
import { PageClientImpl } from './PageClientImpl';
import { isVideoCodec } from '@/lib/types';
export default function Page({
export default async function Page({
params,
searchParams,
}: {
params: { roomName: string };
searchParams: {
params: Promise<{ roomName: string }>;
searchParams: Promise<{
// FIXME: We should not allow values for regions if in playground mode.
region?: string;
hq?: string;
codec?: string;
};
}>;
}) {
const _params = await params;
const _searchParams = await searchParams;
const codec =
typeof searchParams.codec === 'string' && isVideoCodec(searchParams.codec)
? searchParams.codec
typeof _searchParams.codec === 'string' && isVideoCodec(_searchParams.codec)
? _searchParams.codec
: 'vp9';
const hq = searchParams.hq === 'true' ? true : false;
const hq = _searchParams.hq === 'true' ? true : false;
return (
<PageClientImpl roomName={params.roomName} region={searchParams.region} hq={hq} codec={codec} />
<PageClientImpl
roomName={_params.roomName}
region={_searchParams.region}
hq={hq}
codec={codec}
/>
);
}

2
next-env.d.ts vendored
View File

@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

View File

@ -15,7 +15,7 @@
"@livekit/krisp-noise-filter": "0.2.16",
"livekit-client": "2.10.0",
"livekit-server-sdk": "2.11.0",
"next": "14.2.26",
"next": "15.2.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"tinykeys": "^3.0.0"
@ -25,11 +25,12 @@
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"eslint": "9.24.0",
"eslint-config-next": "14.2.27",
"eslint-config-next": "15.2.4",
"source-map-loader": "^5.0.0",
"typescript": "5.8.3"
},
"engines": {
"node": ">=18"
}
},
"packageManager": "pnpm@9.15.9"
}

602
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff