Use Case
You have one Next.js repo and run npm run dev directly. You want multiple Muxy workspaces active at once, each with isolated ports and browser tabs.
Documentation
Use this when your frontend runs directly on your machine (no containers) and you want multiple workspaces without port conflicts.
You have one Next.js repo and run npm run dev directly. You want multiple Muxy workspaces active at once, each with isolated ports and browser tabs.
FRONTEND_PORTReserve a named port per workspace. This avoids collisions when two branches both run a dev server.
npm i
cp /shared/.env .envnpm i ensures dependencies are present in new workspaces.cp creates an independent .env copy per workspace. Copy is safer when you want branch-local env edits. A symlink keeps one source of truth, but changes affect all workspaces and can cause surprising cross-branch coupling.
PORT=$FRONTEND_PORT npm run devThis binds Next.js to the workspace-reserved host port, so browser sessions and checks target the correct workspace instance.
http://localhost:$FRONTEND_PORTBrowser session URLs should use named ports so each workspace opens its own app tab reliably.
curl -fsS http://localhost:$FRONTEND_PORTStatus checks give early signal when the server is down, hung, or failed after startup. Useful for restart policies and for quickly seeing run health in the Muxy UI.