perf: make root HTML cacheable by dropping per-request CSP nonce

This commit is contained in:
Linus Rath
2026-04-18 13:01:12 +02:00
parent 1689315c3a
commit 522bf6a019
6 changed files with 17 additions and 42 deletions
+1 -8
View File
@@ -18,15 +18,8 @@ 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} messages={messages}>
<IntlProvider locale={locale}>
<ThemeProvider>
<CalendarAlertProvider>
<RateLimitToastProvider>