Skip to content

fix: strip trailing slashes from prerendered paths in edge function exclude list - #16787

Closed
Nic-Polumeyv wants to merge 2 commits into
sveltejs:mainfrom
Nic-Polumeyv:netlify-prerendered-exclude
Closed

fix: strip trailing slashes from prerendered paths in edge function exclude list#16787
Nic-Polumeyv wants to merge 2 commits into
sveltejs:mainfrom
Nic-Polumeyv:netlify-prerendered-exclude

Conversation

@Nic-Polumeyv

@Nic-Polumeyv Nic-Polumeyv commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #13310. Netlify treats a trailing slash in excludedPath as required rather than optional, but the prerendered root is recorded as /base/ when a base path is set, and trailingSlash: 'always' pages as /foo/, so they were never excluded and hit the edge function.

Alternative to #16472.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 13, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 9ffcd47:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/9ffcd474664e7bd1682566120db6f708b5a30fe4

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16787

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9ffcd47

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/adapter-netlify Patch

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant