Redirects not working (vercel static) #9259
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: redirects
Related to the redirects feature (scope)
pkg: vercel
Related to Vercel adapter (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Redirects don't seem to be working correctly. I have two cases in which they fail:
Case 1: Regular redirects don't work
I'm trying to redirect
/posts
to/blog
. There are no pages or content associated with/posts
. Doesn't seem to be redirecting, just goes to the 404 page. I've tried creating aposts.astro
file in mypages
directory, but it doesn't help.astro.config.mjs:
Case 2: Redirecting to an external website
astro.config.mjs:
This works fine in development, but shows the 404 page on live deployments.
I am running Astro with static output and deployed on vercel
Am I missing something here or incorrectly configuring redirects?
What's the expected result?
Expecting the configured redirects to work.
In the MRE below things work fine.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-boqzze?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: