Pass siteDescription to page metadata; document media cache rule
createPageMetadata read Site Settings → siteDescription but never passed it to buildMetadata, so pages without their own meta description had no <meta name="description"> or og:description. Regression test in seo.test.ts. storage.md: Cloudflare Cache Rule for the media domain (R2 objects carry no Cache-Control; storage-s3 cannot set it, Cloudflare defaults to 4 h). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d28cbe2570
commit
a6eda2e3a3
@@ -8,6 +8,23 @@ wersji naraz przejdź po kolei wszystkie sekcje „Wymaga zmian w projekcie” o
|
||||
wersji, którą masz. Nowe wydanie = nowa sekcja na górze; najstarsze usuwamy
|
||||
dopiero powyżej 20.
|
||||
|
||||
## 1.10.1
|
||||
|
||||
### Poprawki
|
||||
- **Zapasowy metaopis działa.** `createPageMetadata` (a więc `createPageRoute` / `generatePageMetadata`) czytał
|
||||
Site Settings → `siteDescription`, ale nie przekazywał go do `buildMetadata` — strona bez własnego
|
||||
`meta.description` nie miała `<meta name="description">` ani `og:description` (Lighthouse SEO: „Dokument nie
|
||||
ma metaopisu”). Test regresyjny w `test/seo.test.ts`.
|
||||
|
||||
### Dokumentacja
|
||||
- storage.md → „Pamięć podręczna mediów”: reguła Cache Rules w Cloudflare dla domeny mediów (1 rok). Pliki w R2
|
||||
nie mają `Cache-Control` (adapter S3 nie pozwala go ustawić), a Cloudflare daje domyślnie 4 h.
|
||||
|
||||
### Wymaga zmian w projekcie
|
||||
- Obejście metaopisu w projekcie (własne uzupełnianie `description` w `generateMetadata`) można usunąć —
|
||||
wystarczy `export const generateMetadata = route.generateMetadata`.
|
||||
- Cloudflare: dodaj regułę Cache Rules dla domeny mediów (storage.md).
|
||||
|
||||
## 1.10.0
|
||||
|
||||
### Nowe
|
||||
|
||||
Reference in New Issue
Block a user