Fixed notfound headers, r2storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user