Skip to content

fix: reject fallback handlers on prerendered endpoints - #17140

Merged
Rich-Harris merged 1 commit into
version-3from
triage/kit-17138-prerender-fallback
Sep 18, 2026
Merged

Rich-Harris merged 1 commit into
version-3from
triage/kit-17138-prerender-fallback

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor

Summary

  • reject fallback handlers during prerendered endpoint analysis
  • apply the same validation when rendering endpoints at runtime
  • add a build-error regression test for a prerendered +server route with fallback

Fixes #17138

Testing

  • pnpm -F test-build-errors exec vitest run prerender.spec.js --reporter=verbose
  • pnpm -F @sveltejs/kit test:unit
  • pnpm check
  • pnpm lint
  • pnpm format
  • git diff --check

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 57338a7:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/57338a7a60b86bae9d1c6f4094d8e63fe3a229c2

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

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 Sep 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 57338a7

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit 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

@Rich-Harris
Rich-Harris marked this pull request as ready for review September 18, 2026 15:42
@Rich-Harris
Rich-Harris merged commit 7847e4e into sveltejs:version-3 Sep 18, 2026
37 of 38 checks passed
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.

Prerender validation misses fallback endpoint handlers

1 participant