Skip to content

Commit d94e3fb

Browse files
authored
Update bindings.mdx
1 parent 17e7206 commit d94e3fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/content/docs/pages/functions/bindings.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,14 @@ If you set up the Service binding via the Cloudflare dashboard, you will need to
549549

550550
For example, to develop locally, if your Worker is called `my-worker`, run `npx wrangler dev` in the `my-worker` directory. In a different terminal, also run `npx wrangler pages dev <OUTPUT_DIR> --service MY_SERVICE=my-worker` in your Pages project directory. Interact with this Service binding by using `context.env` (for example, `context.env.MY_SERVICE`).
551551

552+
Wrangler also supports running your Pages project and bound Workers at once with one command. To try it out, pass multiple -c flags to Wrangler, like this: `wrangler dev -c wrangler.toml -c ../other-worker/wrangler.toml`. The first config must point to your Pages configuration file,and the remaining configs will be accessible via a service binding from your Pages project.
553+
554+
:::caution
555+
556+
Support for running multiple Workers at once with one Wrangler command is experimental, and subject to change as we work on the experience. If you run into bugs or have any feedback, [open an issue on the workers-sdk repository](https://github.com/cloudflare/workers-sdk/issues/new)
557+
558+
:::
559+
552560
<Render file="cli-precedence-over-file" />
553561

554562
## Queue Producers

0 commit comments

Comments
 (0)