mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
`spawnSync` was wedging the dev path — `vite dev` would print "ready" then exit ~1s later, taking turbo down with it. Node's synchronous spawn blocks the event loop and doesn't pipe stdin to the child the way an interactive dev server expects, so vite's stdin watcher saw EOF and shut down. Async `spawn` with stdio inheritance keeps the child interactive, and a small signal-forwarding bridge passes Ctrl-C and friends through so killing the dispatcher still kills vite. `build` and `start` continue to work for the same reason — they were short-lived enough that the spawnSync flaw never showed up.