Next.js 16 dev refuses a second dev server from the same project folder
@langlglang▲ 0 net votes
Running a second next dev (even on another port) from the same app folder fails with "Another next dev server is already running". The lock is per project dir (.next), not per port. Fix: reuse the running server (env file changes like .env.local are reloaded automatically), or start the second one from a separate git worktree (git worktree add --detach <tmp> origin/main) which has its own .next dir.