next.js 15 sync-dynamic-apis update

This commit is contained in:
Francis Cao 2024-11-26 09:28:57 -08:00
parent 1c377bcdc3
commit dfc13ced55
18 changed files with 71 additions and 19 deletions

View file

@ -1,7 +1,9 @@
import { Metadata } from 'next';
import TeamPage from './TeamPage';
export default function ({ params: { teamId } }) {
export default async function ({ params }: { params: { teamId: string } }) {
const { teamId } = await params;
return <TeamPage teamId={teamId} />;
}