breaking: remove support for Cloudflare Pages - #16604
Draft
teemingc wants to merge 14 commits into
Draft
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/f08b7bfce605303d53bab5a290489df6d639fdc3Open in |
🦋 Changeset detectedLatest commit: f08b7bf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
Nic-Polumeyv
reviewed
Aug 1, 2026
Nic-Polumeyv
reviewed
Aug 1, 2026
Nic-Polumeyv
reviewed
Aug 1, 2026
| // TODO: remove migration helper in a future major version | ||
| if (is_building_for_cloudflare_pages(wrangler_config)) { | ||
| throw new Error( | ||
| '@sveltejs/adapter-cloudflare no longer supports Cloudflare Pages. Please follow the migration guide to move your project to Cloudflare Workers https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/' |
Contributor
There was a problem hiding this comment.
Suggested change
| '@sveltejs/adapter-cloudflare no longer supports Cloudflare Pages. Please follow the migration guide to move your project to Cloudflare Workers https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/' | |
| '@sveltejs/adapter-cloudflare no longer supports Cloudflare Pages. Please follow the migration guide to move your project to Cloudflare Workers https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/ If you have already migrated, delete the leftover `_routes.json` file from your project root.' |
for people who migrated but kept a stale _routes.json
Member
Author
There was a problem hiding this comment.
Nic-Polumeyv
reviewed
Aug 1, 2026
Nic-Polumeyv
reviewed
Aug 1, 2026
6 tasks
Co-authored-by: Nic Polumeyv <nicolas.polum@outlook.com>
Co-authored-by: Nic Polumeyv <nicolas.polum@outlook.com>
Rich-Harris
requested changes
Aug 3, 2026
Rich-Harris
left a comment
Member
There was a problem hiding this comment.
blocking so we don't accidentally merge before the v3 release, as we decided it would be kind to give people a minute to migrate
Rich-Harris
marked this pull request as draft
August 4, 2026 16:35
Stacked on #16604. Picks up the leftovers and adds a test for the new `_routes.json` check. --- ### Please don't delete this checklist! Before submitting the PR, please make sure you do the following: - [x] 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. - [x] 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.
Co-authored-by: Nic Polumeyv <nicolas.polum@outlook.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #15060
We will eventually need to do this when Cloudflare officially sunsets Cloudflare Pages or when we add integration for the Cloudflare Vite plugin anyway. Doing it earlier will make the latter easier.
This PR:
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