Files
supabase/apps/studio/scripts
Alaister Young e36887b172 fix(studio): use async spawn in dev dispatcher so long-running servers stay alive
`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.
2026-06-03 23:08:22 +10:00
..