Bring a Cloudflare project
Deploy a Worker you wrote for Cloudflare, with its wrangler.jsonc as it is.
A Worker written for Cloudflare keeps its project file. Sproutboat reads wrangler.jsonc, wrangler.json and wrangler.toml as they are (see Configuration), so there is nothing to rename or rewrite.
cd my-worker
npx sproutboat check # reads wrangler.jsonc, warns about anything Sproutboat does not run
npx sproutboat deploy # builds it in the Cloud and prints the address
wrangler deploy and sproutboat deploy take the same file, so a project can deploy to both.
What to look at first
- The compatibility date stays Cloudflare’s. An older or missing date runs as
2026-11-22, so a Worker written for Workers gets(request, env, ctx)and Promise-returning bindings with no change.checkanddeployprint the date the build uses. - The warnings. Workers AI, Hyperdrive, Vectorize, Containers, Workflows, Browser Rendering and the other products Sproutboat does not run load with one warning each. The binding is
undefinedat run time, so a Worker that needs one fails where it uses it. - The app name. The Cloud takes 3 to 51 characters of
a-z,0-9and-(Wrangler allows 63). If yournameis longer or has_, keep it for Cloudflare and setnameinsproutboat.settings.jsonc. - Storage starts empty. Cloudflare’s
id,database_idandbucket_nameare ignored; every app’s KV, D1 and R2 are its own, named after the binding. Run your D1 migrations withsproutboat d1 migrations apply DB --remote. - Routes.
routesare not applied; the app is at<name>.<team>.sproutboat.app. Add a custom domain in the dashboard. - Queues. A queue is consumed only when it is under
queues.consumers, as on Cloudflare. - Build.
build.commandis not run: build your project first. If your build tool writes.wrangler/deploy/config.json(the Cloudflare Vite plugin does), the config it generated in the build output is the one that deploys, as with Wrangler.
Which fields work
| Fields | |
|---|---|
| Used as written | name, main, compatibility_date, vars, secrets.required, kv_namespaces, d1_databases, r2_buckets, durable_objects and migrations, queues, triggers.crons, services, assets, ratelimits, analytics_engine_datasets, version_metadata, limits.cpu_ms, workers_dev, dev, env.<name> |
| Accepted, nothing to do | observability, upload_source_maps, placement, account_id, compatibility_flags: ["nodejs_compat"], minify, no_bundle, logpush, … |
| Loads with a warning | routes, build, ai, vectorize, hyperdrive, containers, workflows, browser, images, dispatch_namespaces, send_email, … |
Checked against Cloudflare’s own files
All 41 project files of cloudflare/templates load, and the templates run through the same test on every change. Deployed unchanged to a Sproutboat Cloud, with their 2025 dates, the Durable Object and D1 templates answer, and the D1 template serves its migrated rows.
Sproutboat-only settings (the team, the app name, limits) are in sproutboat.settings.jsonc; see Configuration.