breaking: remove support for Cloudflare Pages - #16604
Open
teemingc wants to merge 12 commits into
Open
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/2138166848da32e6cbba90dabe6daf898dba3de6Open in |
🦋 Changeset detectedLatest commit: 2138166 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
Comment on lines
38
to
+39
| * Only for Cloudflare Pages. Customize the automatically-generated [`_routes.json`](https://developers.cloudflare.com/pages/platform/functions/routing/#create-a-_routesjson-file) file. | ||
| * @deprecated |
Contributor
There was a problem hiding this comment.
Suggested change
| * Only for Cloudflare Pages. Customize the automatically-generated [`_routes.json`](https://developers.cloudflare.com/pages/platform/functions/routing/#create-a-_routesjson-file) file. | |
| * @deprecated | |
| * @deprecated Cloudflare Pages is no longer supported |
the fallback JSDoc above also still has the Pages paragraphs
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
Nic-Polumeyv
reviewed
Aug 1, 2026
Nic-Polumeyv
reviewed
Aug 1, 2026
| @@ -78,92 +84,6 @@ export function parse_redirects(file_contents) { | |||
| return redirects; | |||
| } | |||
Contributor
There was a problem hiding this comment.
parse_redirects lost its only caller, can go too (plus its tests)
6 tasks
Co-authored-by: Nic Polumeyv <nicolas.polum@outlook.com>
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