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
-1223
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -141,7 +141,7 @@ Zrób zgodnie z PROGRAMISTA.md §2.6–2.8 i AGENT.md §4:
ConsentProvider + CookieBanner + CookieButton + Analytics wewnątrz providera,
- [locale]/[[...slug]]/page.tsx: revalidate, generateStaticParams, BEZ searchParams,
resolveRedirect przed notFound, enhanceProps wstrzykuje locale do bloków,
- [locale]/not-found.tsx z getNotFoundPage (pages.md).
- [locale]/not-found.tsx z getNotFoundPage dla każdego języka + LocaleView, BEZ headers() (pages.md).
Plan najpierw.
```
Sprawdź: `/` → `/<domyślny język>`; `pnpm build` pokazuje strony jako `●`;