Skip to content

Commit 27500f3

Browse files
authored
platformProxy.environment for cloudflare's local bindings
1 parent 0dff64c commit 27500f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

documentation/docs/25-build-and-deploy/60-adapter-cloudflare.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ Path to your [Wrangler configuration file](https://developers.cloudflare.com/wor
5151

5252
### platformProxy
5353

54-
Preferences for the emulated `platform.env` local bindings. See the [getPlatformProxy](https://developers.cloudflare.com/workers/wrangler/api/#parameters-1) Wrangler API documentation for a full list of options.
54+
Preferences for the emulated `platform.env` local bindings. See the [getPlatformProxy](https://developers.cloudflare.com/workers/wrangler/api/#parameters-1) Wrangler API documentation for a full list of options.
55+
56+
For local development, if you want to use cloudflare's local bindings like D1, KV etc., `platformProxy.environment` may be set, based on wrangler config env. For example if wrangler config has env, `main` for production build and `dev` or `staging` for non-production builds, `platformProxy.environment` can be set as `dev` or `staging`.
5557

5658
### fallback
5759

0 commit comments

Comments
 (0)