-
-
Notifications
You must be signed in to change notification settings - Fork 0
Dev: run multiple workers together locally #1531
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestheartwoodAuthentication and identity (sessions, passkeys)Authentication and identity (sessions, passkeys)latticeFramework, monorepo, and shared infrastructureFramework, monorepo, and shared infrastructurelumenAI assistant and intelligence layerAI assistant and intelligence layerpattern:loomDurable Objects coordination layerDurable Objects coordination layer
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestheartwoodAuthentication and identity (sessions, passkeys)Authentication and identity (sessions, passkeys)latticeFramework, monorepo, and shared infrastructureFramework, monorepo, and shared infrastructurelumenAI assistant and intelligence layerAI assistant and intelligence layerpattern:loomDurable Objects coordination layerDurable Objects coordination layer
Projects
Status
Backlog
Summary
Set up multi-worker local development using Wrangler's multi-config
wrangler dev -cfeature (GA September 2025). This allows all Grove workers to run in a single Miniflare instance with service bindings and DO RPC working between them.Why
Currently, service bindings (AUTH, LUMEN, ZEPHYR, REVERIE) are dead in
vite dev— they can't resolve other workers. This makes it impossible to test cross-service flows locally (login, AI, email). Multi-config dev mode resolves this by running all workers in one Miniflare instance.Implementation
Core dev command
# Run aspen + heartwood + durable-objects together wrangler dev \ -c apps/aspen/wrangler.toml \ -c services/heartwood/wrangler.toml \ -c workers/grove-durable-objects/wrangler.tomlFirst config = primary (receives HTTP). Others accessible via service bindings.
What this unlocks
Tradeoffs
pnpm buildthenwrangler dev)remote: trueWhat to build
scripts/dev-multi.shthat orchestrates multi-configwrangler devpnpm dev:full(builds + runs multi-config)[dev]overrides for production-only vars (AUTH_BASE_URL → localhost, etc.)remote: true(Workers AI, Vectorize)Key Limitation
getPlatformProxy()(used by SvelteKit's adapter-cloudflare invite dev) does NOT support multi-config yet (workers-sdk issue #9445). Until that ships, multi-config dev requireswrangler devmode (no HMR). See Tier 3 issue for the hybrid workaround.Context
.dev.vars.examplefiles already created (Tier 1)