Revert "perf: make root HTML cacheable by dropping per-request CSP nonce"
This reverts commit 522bf6a019.
This commit is contained in:
@@ -18,8 +18,15 @@ export default async function LocaleLayout({
|
||||
|
||||
if (!(locales as readonly string[]).includes(locale)) notFound();
|
||||
|
||||
let messages;
|
||||
try {
|
||||
messages = (await import(`@/locales/${locale}/common.json`)).default;
|
||||
} catch {
|
||||
notFound();
|
||||
}
|
||||
|
||||
return (
|
||||
<IntlProvider locale={locale}>
|
||||
<IntlProvider locale={locale} messages={messages}>
|
||||
<ThemeProvider>
|
||||
<CalendarAlertProvider>
|
||||
<RateLimitToastProvider>
|
||||
|
||||
Reference in New Issue
Block a user