Single-language sites: Markdown route without the locale param; i18n docs corrected
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -106,7 +106,9 @@ export const i18nConfig = {
|
||||
],
|
||||
} as const satisfies I18nConfig
|
||||
```
|
||||
Strona jednojęzyczna: jeden locale, bez folderu `[locale]` (i18n.md).
|
||||
Strona jednojęzyczna: jeden locale, bez folderu `[locale]` — layout z `i18nConfig.defaultLocale`,
|
||||
`createPageRoute` / `createNotFoundPage` bez zmian, Markdown w `app/md/[[...slug]]/route.ts` (i18n.md).
|
||||
Nie zakładaj `[locale]` „na zapas” przy jednym języku — linki byłyby bez `/pl`, strony z `/pl`.
|
||||
|
||||
### 2.3 payload.config.ts
|
||||
```ts
|
||||
|
||||
Reference in New Issue
Block a user