Skip to content

fix: prefix dynamic segment with letters#15332

Merged
teemingc merged 6 commits intomainfrom
fix-netlify-param
Feb 18, 2026
Merged

fix: prefix dynamic segment with letters#15332
teemingc merged 6 commits intomainfrom
fix-netlify-param

Conversation

@teemingc
Copy link
Member

@teemingc teemingc commented Feb 18, 2026

fixes #15329

requires #15335 to be merged first so that our test runs correctly. The Netlify dev server cannot detect the split function config export for routing otherwise

This PR fixes an issue where our dynamic segment starts with a number instead of a letter so that it works with URLPattern which is used by the Netlify functions v2. Without this, users using the Netlify adapter with split functions configured and parameterised routes will fail to deploy their apps.


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

  • Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

🦋 Changeset detected

Latest commit: eacb526

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

@teemingc teemingc marked this pull request as ready for review February 18, 2026 12:24
Copy link
Contributor

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙏🏼

@teemingc teemingc merged commit 25166c8 into main Feb 18, 2026
28 checks passed
@teemingc teemingc deleted the fix-netlify-param branch February 18, 2026 19:10
@github-actions github-actions bot mentioned this pull request Feb 18, 2026
elliott-with-the-longest-name-on-github pushed a commit that referenced this pull request Feb 18, 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 main, this PR will
be updated.


# Releases
## @sveltejs/adapter-netlify@6.0.2

### Patch Changes

- fix: prefix param matcher with alphabetical characters so that it
works with URLPattern matching
([#15332](#15332))

- Updated dependencies
\[[`3e607b3`](3e607b3),
[`62991c8`](62991c8),
[`f47c01b`](f47c01b)]:
    -   @sveltejs/kit@2.52.2

## @sveltejs/adapter-vercel@6.3.2

### Patch Changes

- fix: 404 for immutable assets that don't match static files
([`c67da8a`](c67da8a))

- Updated dependencies
\[[`3e607b3`](3e607b3),
[`62991c8`](62991c8),
[`f47c01b`](f47c01b)]:
    -   @sveltejs/kit@2.52.2

## @sveltejs/kit@2.52.2

### Patch Changes

- fix: validate `form` file information to prevent amplification attacks
([`3e607b3`](3e607b3))


- chore: upgrade `devalue` and `svelte`
([#15339](#15339))


- fix: parse file offset table more strictly
([`f47c01b`](f47c01b))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 2026
fixes sveltejs#15329

requires sveltejs#15335 to be merged first
so that our test runs correctly. The Netlify dev server cannot detect
the split function `config` export for routing otherwise

This PR fixes an issue where our dynamic segment starts with a number
instead of a letter so that it works with URLPattern which is used by
the Netlify functions v2. Without this, users using the Netlify adapter
with split functions configured and parameterised routes will fail to
deploy their apps.

---

### Please don't delete this checklist! Before submitting the PR, please
make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is
discussed ahead of time. In many cases, features are absent for a
reason. For large changes, please create an RFC:
https://github.com/sveltejs/rfcs
- [x] This message body should clearly illustrate what problems it
solves.
- [ ] Ideally, include a test that fails without this PR but passes with
it.

### Tests
- [ ] Run the tests with `pnpm test` and lint the project with `pnpm
lint` and `pnpm check`

### Changesets
- [x] If your PR makes a change that should be noted in one or more
packages' changelogs, generate a changeset by running `pnpm changeset`
and following the prompts. Changesets that add features should be
`minor` and those that fix bugs should be `patch`. Please prefix
changeset messages with `feat:`, `fix:`, or `chore:`.

### Edits

- [x] Please ensure that 'Allow edits from maintainers' is checked. PRs
without this option may be closed.
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 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 main, this PR will
be updated.


# Releases
## @sveltejs/adapter-netlify@6.0.2

### Patch Changes

- fix: prefix param matcher with alphabetical characters so that it
works with URLPattern matching
([sveltejs#15332](sveltejs#15332))

- Updated dependencies
\[[`3e607b3`](sveltejs@3e607b3),
[`62991c8`](sveltejs@62991c8),
[`f47c01b`](sveltejs@f47c01b)]:
    -   @sveltejs/kit@2.52.2

## @sveltejs/adapter-vercel@6.3.2

### Patch Changes

- fix: 404 for immutable assets that don't match static files
([`c67da8a`](sveltejs@c67da8a))

- Updated dependencies
\[[`3e607b3`](sveltejs@3e607b3),
[`62991c8`](sveltejs@62991c8),
[`f47c01b`](sveltejs@f47c01b)]:
    -   @sveltejs/kit@2.52.2

## @sveltejs/kit@2.52.2

### Patch Changes

- fix: validate `form` file information to prevent amplification attacks
([`3e607b3`](sveltejs@3e607b3))


- chore: upgrade `devalue` and `svelte`
([sveltejs#15339](sveltejs#15339))


- fix: parse file offset table more strictly
([`f47c01b`](sveltejs@f47c01b))

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants