Fixed notfound headers, r2storage

This commit is contained in:
2026-10-13 15:57:59 +02:00
parent 86c873e4e7
commit 786dd346a9
24 changed files with 1506 additions and 2765 deletions
+2
View File
@@ -168,6 +168,8 @@ export const proxy = createProxy(i18nConfig, { NextResponse })
export const config = { matcher: ['/((?!api|admin|_next|.*\\..*).*)'] }
```
Ustawia `x-locale` / `x-pathname`, cookie języka za zgodą, przekierowuje `/`.
Nagłówki są dla tras dynamicznych (API, route handlery) — w stronach SSG/ISR,
layoutach i `not-found.tsx` **nie czytaj `headers()`** (AGENT.md §4.6).
### 2.7 Warstwa danych — jedno źródło
```ts