You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Wrangler dev with multiple config files now supports worker bindings across dev commands
2
+
title: Improved support for running multiple Workers with `wrangler dev`
3
3
description: Workers running with wrangler dev using multiple config files can now communicate with Workers running in separate dev commands.
4
4
products:
5
5
- workers
@@ -9,16 +9,36 @@ date: 2025-09-23
9
9
You can run multiple Workers in a single dev command by passing multiple config files to `wrangler dev`:
10
10
11
11
```sh
12
-
wrangler dev --config ./app/wrangler.jsonc --config ./api/wrangler.jsonc
12
+
wrangler dev --config ./web/wrangler.jsonc --config ./api/wrangler.jsonc
13
13
```
14
14
15
-
Previously, these Workers could not communicate with Workers running in separate dev commands. Now service bindings and tail consumers work across dev commands:
15
+
Previously, if you ran the command above and then also ran wrangler dev for a different Worker, the Workers running in separate wrangler dev sessions could not communicate with each other. This prevented you from being able to use [Service Bindings](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/) and [Tail Workers](https://developers.cloudflare.com/workers/observability/logs/tail-workers/) in local development, when running separate wrangler dev sessions.
16
+
17
+
Now, the following works as expected:
16
18
17
19
```sh
18
-
# Start another Workers (e.g. auth) on a new terminal
20
+
# Terminal 1: Run your application that includes both Web and API workers
21
+
wrangler dev --config ./web/wrangler.jsonc --config ./api/wrangler.jsonc
22
+
23
+
# Terminal 2: Run your auth worker separately
19
24
wrangler dev --config ./auth/wrangler.jsonc
20
25
```
21
26
22
27
These Workers can now communicate with each other across separate dev commands, regardless of your development setup.
returnnewResponse('Hello from API Worker!', { status:200 });
40
+
},
41
+
};
42
+
```
43
+
24
44
Check out the [Developing with multiple Workers](/workers/development-testing/multi-workers) guide to learn more about the different approaches and when to use each one.
0 commit comments