-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astro redirects not working #7322
Comments
The types and validation for |
I can recreate the dev problem. Fixing now. |
Would like to reopen this @matthewp Goal is to be able to redirect with parameters status 308 (f.e. output: "hybrid",
adapter: vercel(),
experimental: {
redirects: true,
},
redirects: {
"/b": {
destination: "/a",
status: 308,
},
}, received error:
|
Can confirm this is still happening. I'm refactoring some tests that now validates the config, and it fails with the error too. We need to fix the validation here:
|
What version of
astro
are you using?2.6.1
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
yarn
What operating system are you using?
Windows
What browser are you using?
Chrome
Describe the Bug
Tried out new experimental redirects.
Went trough all paths possible (for both new page and old page with slash and without) Yet visiting page "/a" no redirects being made (both in dev and production).
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-njit3y
Participation
The text was updated successfully, but these errors were encountered: