You can run multiple Workers in a single dev command by passing multiple config files to wrangler dev:
wrangler dev --config ./web/wrangler.jsonc --config ./api/wrangler.jsoncPreviously, 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 and Tail Workers in local development, when running separate wrangler dev sessions.
Now, the following works as expected:
# Terminal 1: Run your application that includes both Web and API workerswrangler dev --config ./web/wrangler.jsonc --config ./api/wrangler.jsonc
# Terminal 2: Run your auth worker separatelywrangler dev --config ./auth/wrangler.jsoncThese Workers can now communicate with each other across separate dev commands, regardless of your development setup.
export default { async fetch(request, env) { // This service binding call now works across dev commands const authorized = await env.AUTH.isAuthorized(request);
if (!authorized) { return new Response('Unauthorized', { status: 401 }); }
return new Response('Hello from API Worker!', { status: 200 }); },};Check out the Developing with multiple Workers guide to learn more about the different approaches and when to use each one.
Source: Cloudflare
Latest Posts
- Microsoft Purview eDiscovery Configuration change for PowerShell cmdlet case and search synchronization changes [MC1238428]
![Microsoft Purview eDiscovery Configuration change for PowerShell cmdlet case and search synchronization changes [MC1238428] 2 pexels skitterphoto 390089](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Workspace IP Firewall rules (Public Preview) [MC1238430]
![Workspace IP Firewall rules (Public Preview) [MC1238430] 3 pexels mikhail nilov 7827963](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Updates to filtered message viewing in Outlook for iOS and Android [MC1238433]
![Updates to filtered message viewing in Outlook for iOS and Android [MC1238433] 4 pexels everson mayer 478307 1481309](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Microsoft 365 Copilot app: Branded footer customization [MC1238432]
![Microsoft 365 Copilot app: Branded footer customization [MC1238432] 5 pexels ivan drazic 20457695 13370450](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![Microsoft Purview eDiscovery Configuration change for PowerShell cmdlet case and search synchronization changes [MC1238428] 2 pexels skitterphoto 390089](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-skitterphoto-390089-150x150.webp)
![Workspace IP Firewall rules (Public Preview) [MC1238430] 3 pexels mikhail nilov 7827963](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-mikhail-nilov-7827963-150x150.webp)
![Updates to filtered message viewing in Outlook for iOS and Android [MC1238433] 4 pexels everson mayer 478307 1481309](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-everson-mayer-478307-1481309-150x150.webp)
![Microsoft 365 Copilot app: Branded footer customization [MC1238432] 5 pexels ivan drazic 20457695 13370450](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-ivan-drazic-20457695-13370450-150x150.webp)
