---
title: Bring a Cloudflare project
description: "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](/docs/concepts/configuration)), so there is nothing to rename or rewrite.

```bash
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

1. **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. `check` and `deploy` print the date the build uses.
2. **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 `undefined` at run time, so a Worker that needs one fails where it uses it.
3. **The app name.** The Cloud takes 3 to 51 characters of `a-z`, `0-9` and `-` (Wrangler allows 63). If your `name` is longer or has `_`, keep it for Cloudflare and set `name` in `sproutboat.settings.jsonc`.
4. **Storage starts empty.** Cloudflare's `id`, `database_id` and `bucket_name` are ignored; every app's KV, D1 and R2 are its own, named after the binding. Run your D1 migrations with `sproutboat d1 migrations apply DB --remote`.
5. **Routes.** `routes` are not applied; the app is at `<name>.<team>.sproutboat.app`. Add a [custom domain](/docs/platform/custom-domains) in the dashboard.
6. **Queues.** A queue is consumed only when it is under `queues.consumers`, as on Cloudflare.
7. **Build.** `build.command` is 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](https://github.com/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](/docs/concepts/configuration#sproutboatsettingsjsonc).
