diff --git a/src/app/[locale]/dashboard/page.tsx b/src/app/[locale]/dashboard/page.tsx index d0cb5de..f8b7e79 100644 --- a/src/app/[locale]/dashboard/page.tsx +++ b/src/app/[locale]/dashboard/page.tsx @@ -1,3 +1,4 @@ +import { connection } from 'next/server'; import { setRequestLocale } from 'next-intl/server'; import type { Metadata } from 'next'; import { redirect } from 'next/navigation'; @@ -34,6 +35,9 @@ export async function generateMetadata({ params }: Props): Promise { } export default async function DashboardPage({ params }: Props) { + // CRITICAL: Use connection() API to guarantee dynamic rendering in Next.js 15 + await connection(); + const { locale } = await params; setRequestLocale(locale);