Skip to content

fix: generate __route.js files as siblings of .html pages - #16674

Merged
Rich-Harris merged 2 commits into
version-3from
fix-16579-html-route-suffix
Aug 7, 2026
Merged

fix: generate __route.js files as siblings of .html pages#16674
Rich-Harris merged 2 commits into
version-3from
fix-16579-html-route-suffix

Conversation

@Nic-Polumeyv

Copy link
Copy Markdown
Contributor

Fixes #16579. Same fix as #11269: for .html pages the resolution module is emitted as a sibling (page.html__route.js) instead of nested.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Aug 6, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 0a8a441:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/0a8a441219bbf7fa94fd437f8431007a10ccb801

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

@changeset-bot

changeset-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0a8a441

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

This PR includes changesets to release 2 packages
Name Type
@sveltejs/kit Patch
@sveltejs/adapter-vercel 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

@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris
Rich-Harris merged commit 10b2c64 into version-3 Aug 7, 2026
26 checks passed
@Rich-Harris
Rich-Harris deleted the fix-16579-html-route-suffix branch August 7, 2026 11:57
Rich-Harris pushed a commit that referenced this pull request Aug 7, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to version-3, this PR
will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`version-3` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `version-3`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @sveltejs/adapter-vercel@7.0.0-next.6

### Patch Changes

- fix: match sibling `.html__route.js` route resolution requests
([#16674](#16674))
- Updated dependencies
[[`10b2c64`](10b2c64)]:
  - @sveltejs/kit@3.0.0-next.16
## @sveltejs/kit@3.0.0-next.16

### Patch Changes

- fix: generate route resolution modules as siblings of `.html` pages
([#16674](#16674))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Prerendered pages with an extension in the filename collide with their __route.js under router.resolution: 'server'

2 participants