fix(adapter-vercel): make normalization redirects root-relative - #16905
fix(adapter-vercel): make normalization redirects root-relative#16905teemingc wants to merge 3 commits into
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/0ab02ecf614e3c7cb5ba94e95d66cf946e4ab9c0Open in |
🦋 Changeset detectedLatest commit: 0ab02ec The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
85f1862 to
43672c5
Compare
This reverts commit 43672c5.
b9b2269 to
9b59b02
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
9b59b02 to
0ab02ec
Compare
|
The problem is upstream of the location header: |
What this does
Converts SvelteKit normalization redirects to root-relative
Locationheaders in the Vercel serverless wrapper. This prevents Vercel from resolving relative normalization redirects against its internal ISR rewrite URL.Stacked on #16903, which adds the failing ISR +
trailingSlash: 'always'test.Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.Edits