Under construction mode (developer tool)
Site Settings -> Under construction: a switch, 'Pages still available' and notice texts. When on, only the homepage and the chosen pages open (every language); other addresses redirect to the homepage with the notice (createPageRoute redirect option), and <ConstructionNotice> cancels clicks on links to blocked pages and shows the notice. getConstructionMode(locale). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -8,6 +8,19 @@ 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.9.8
|
||||
|
||||
### Nowe
|
||||
- **Strona w budowie** (narzędzie deweloperskie): Site Settings → Under construction — przełącznik, lista
|
||||
„Pages still available” i teksty popupu. Gdy włączone, otwiera się tylko strona główna i wybrane strony
|
||||
(w każdym języku); inne adresy → strona główna z popupem, kliknięcie linku do zablokowanej strony →
|
||||
popup zamiast przejścia. `createPageRoute(…, { redirect })`, `getConstructionMode(locale)`,
|
||||
`<ConstructionNotice>` (`/client`). Opis: construction.md.
|
||||
|
||||
### Wymaga zmian w projekcie
|
||||
- Nowe pola w Site Settings → migracja (`pnpm payload migrate:create`, z kompletem `R2_*`, jeśli projekt ich używa).
|
||||
Bez `redirect` w `createPageRoute` i bez `<ConstructionNotice>` tryb nie działa (nic się nie zmienia).
|
||||
|
||||
## 1.9.7
|
||||
|
||||
### Nowe
|
||||
|
||||
Reference in New Issue
Block a user