Commit 7aca76b
fix(docs): remove conflicting redirects and i18n config causing build failure (#2465)
In Astro 5 static build mode, config-level redirects with dynamic patterns
(e.g. /en/[...slug]) create redirect routes that Astro tries to statically
generate, but the redirect route handler has no getStaticPaths(), causing a
[GetStaticPathsRequired] build error.
The [locale]/[...slug].astro page already handles these redirects programmatically
via Astro.redirect(), so the config-level redirects were redundant and conflicting.
The i18n routing config was also creating injected fallback routes that clashed
with the manual locale routing in the page files.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c06e7f5 commit 7aca76b
1 file changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 49 | | |
59 | 50 | | |
60 | 51 | | |
| |||
0 commit comments