|
2 | 2 | {} |
3 | 3 | --- |
4 | 4 |
|
5 | | -### Supported resource bindings in different environments |
6 | | - |
7 | | -| Product | Local Dev Supported | Remote Dev Supported | |
8 | | -| ----------------------------------- | ------------------- | -------------------- | |
9 | | -| AI | ✅[^1] | ✅ | |
10 | | -| Assets | ✅ | ✅ | |
11 | | -| Analytics Engine | ✅ | ✅ | |
12 | | -| Browser Rendering | ❌ | ✅ | |
13 | | -| D1 | ✅ | ✅ | |
14 | | -| Durable Objects | ✅ | ✅ | |
15 | | -| Email Bindings | ❌ | ✅ | |
16 | | -| Hyperdrive | ✅ | ✅ | |
17 | | -| Images | ✅ | ✅ | |
18 | | -| KV | ✅ | ✅ | |
19 | | -| mTLS | ❌ | ✅ | |
20 | | -| Queues | ✅ | ❌ | |
21 | | -| R2 | ✅ | ✅ | |
22 | | -| Rate Limiting | ✅ | ✅ | |
23 | | -| Service Bindings (multiple Workers) | ✅ | ✅ | |
24 | | -| Vectorize | ✅[^2] | ✅ | |
25 | | -| Workflows | ✅ | ❌ | |
26 | | - |
27 | | -With any bindings that are not supported locally, you will need to use the [`--remote` command](#develop-using-remote-resources-and-bindings) in wrangler, such as `wrangler dev --remote`. |
28 | | - |
29 | | -[^1]: Using Workers AI always accesses your Cloudflare account in order to run AI models and will incur usage charges even in local development. |
30 | | - |
31 | | -[^2]: Using Vectorize always accesses your Cloudflare account to run queries, and will incur usage charges even in local development. |
| 5 | +### Binding Support: Local vs. Remote Development |
| 6 | + |
| 7 | +#### Local Development |
| 8 | + |
| 9 | +Includes [Wrangler `dev`](/workers/wrangler/commands/#dev) without `--remote` and the [Cloudflare Vite plugin](/local-development/vite/). This mode simulates the Cloudflare Workers environment locally. |
| 10 | + |
| 11 | +#### Remote Development |
| 12 | + |
| 13 | +Uses [Wrangler `dev --remote`](/workers/wrangler/commands/#dev)), deploying your code to Cloudflare’s infrastructure during development. This ensures all bindings and resources match production conditions. |
| 14 | + |
| 15 | +| Binding | Local (Wrangler & Vite) | Remote (Wrangler only) | |
| 16 | +| --------------------------------------- | :---------------------: | :--------------------: | |
| 17 | +| **AI** | ✅¹ | ✅ | |
| 18 | +| **Assets** | ✅ | ✅ | |
| 19 | +| **Analytics Engine** | ✅ | ✅ | |
| 20 | +| **Browser Rendering** | ❌ | ✅ | |
| 21 | +| **D1** | ✅ | ✅ | |
| 22 | +| **Durable Objects** | ✅ | ✅ | |
| 23 | +| **Email Bindings** | ❌ | ✅ | |
| 24 | +| **Hyperdrive** | ✅ | ✅ | |
| 25 | +| **Images** | ✅ | ✅ | |
| 26 | +| **KV** | ✅ | ✅ | |
| 27 | +| **mTLS** | ❌ | ✅ | |
| 28 | +| **Queues** | ✅ | ❌ | |
| 29 | +| **R2** | ✅ | ✅ | |
| 30 | +| **Rate Limiting** | ✅ | ✅ | |
| 31 | +| **Service Bindings (multiple Workers)** | ✅ | ✅ | |
| 32 | +| **Vectorize** | ✅² | ✅ | |
| 33 | +| **Workflows** | ✅ | ❌ | |
| 34 | + |
| 35 | +¹ Using Workers AI always accesses your Cloudflare account to run AI models, incurring usage charges even during local development. |
| 36 | +² Using Vectorize always accesses your Cloudflare account to run queries, incurring usage charges even during local development. |
| 37 | + |
| 38 | +> **Tip:** If you need to use any bindings marked with ❌ under local development, run: |
| 39 | +> |
| 40 | +> ```bash |
| 41 | +> wrangler dev --remote |
| 42 | +> ``` |
| 43 | +> |
| 44 | +> This uploads your code to Cloudflare so you can test those bindings against the real environment. |
| 45 | +
|
| 46 | +--- |
0 commit comments