We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b740527 commit 4839c21Copy full SHA for 4839c21
1 file changed
apps/web/src/app/[locale]/not-found.tsx
@@ -2,11 +2,11 @@ import type { Locale } from "next-intl";
2
import { setRequestLocale } from "next-intl/server";
3
4
interface NotFoundPageProps {
5
- params: Promise<{ locale: string }>;
+ params?: Promise<{ locale: string }>;
6
}
7
8
export default async function NotFoundPage({ params }: NotFoundPageProps) {
9
- const { locale } = await params;
+ const locale = (await params)?.locale || "en";
10
setRequestLocale(locale as Locale);
11
12
return (
0 commit comments