singularity-forge/web/lib/__tests__
NilsR0711 1ad4137892 fix(web): skip shutdown in daemon mode so server survives tab close (#2842)
When GSD_WEB_DAEMON_MODE=1 is set, scheduleShutdown() becomes a no-op.
The /api/shutdown endpoint still returns { ok: true } so the client
beacon fires without a network error, but process.exit() is never
called. This allows gsd --web to run as a persistent daemon behind a
reverse proxy without exiting on every browser tab close or refresh.

Closes #2835
2026-03-27 18:07:44 -06:00
..
shutdown-gate.test.ts fix(web): skip shutdown in daemon mode so server survives tab close (#2842) 2026-03-27 18:07:44 -06:00