External redirects break static build #13120
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: routing
Related to Astro routing (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Tested with Astro 5.2.0 and 5.2.3: the build of our static site fails because of external redirects with the following errors (verbose):
On
build
(notdev
):I can produce the error with our (slimmed down)
defineConfig
:The external redirect matches the documentation of the new feature.
Without the redirects or with non-external redirects the build work.
What's the expected result?
External redirects don't break my build.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1n3kqdia?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: