Open wotschofsky opened 1 month ago
Latest commit: 6c06aba35d4e0653a91fe7c61e679baff8de9da7
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 was originally opened on the main Astro repo: https://github.com/withastro/astro/pull/11422
Changes
Before:
Redirects with schema defined in astro.config.mjs were converted into paths on the same site: https://google.com -> /https://google.com
After:
External redirects are detected and don't have the project base path prepended.
Testing
The output (esp.
.vercel/output/config.json
) of building a project with the updated integration was manually inspected.A test was added
Docs
The Astro docs generally state that supporting external links configured through
astro.config.mjs
isn't a goal. While the Cloudflare adapter already supports external redirects, the Vercel adapter handled external redirects differently so far. Therefore this could potentially be considered a breaking change.