fix: pipeline

This commit is contained in:
2026-02-16 22:35:39 +01:00
parent 3d498ba46f
commit a2e1cc9850
2 changed files with 4 additions and 5 deletions

View File

@@ -9,11 +9,9 @@ export default getRequestConfig(async ({ requestLocale }) => {
const locale =
typeof rawLocale === 'string' && supportedLocales.includes(rawLocale) ? rawLocale : 'en';
// Log to Sentry if we had to fallback, as it might indicate a routing issue
// Silent fallback for missing locales to support internal requests (e.g. OG generation)
if (!rawLocale || !supportedLocales.includes(rawLocale as string)) {
console.warn(
`[i18n] Invalid or missing requestLocale received: "${rawLocale}". Falling back to "en".`,
);
// console.debug(`[i18n] Fallback to "en" for locale: "${rawLocale}"`);
}
return {