-
-
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
Redirects #7067
Redirects #7067
Conversation
🦋 Changeset detectedLatest commit: 33a9d5f The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This PR is blocked because it contains a |
!preview redirects |
|
* Implement support for dynamic routes in redirects * Remove the .only * No need to special-case redirects in static build
* Implement support for redirects config in the Vercel adapter * Remove unused condition * Move to a internal helper package
!preview redirects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some docs comments, for your consideration @matthewp!
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, excited for this feature!
Co-authored-by: Sarah Rainsberger <[email protected]>
Preview release
Note that this is now available as a preview release. You can install with:
Then you can set up redirects in your config:
Additionally you can use
Astro.redirect
in components.Output
With this preview release the output works in 2 ways:
<meta http-equiv="refresh" content="0;url=/" />
netlifyStatic
adapter it will also write out the appropriate_redirects
file for you.Changes
Testing
Docs