fix(server): start the production bundle again (#7)

The bundled server crashed at startup with "Named export 'utils' not
found": ssh2 is CommonJS and Node's ESM loader does not expose `utils`
as a named export. Vitest resolves the module differently, so the unit
tests passed. Import ssh2 through its default export instead.

New test builds the bundle with the package's own esbuild command and
starts it with Node until /api/health answers.
This commit is contained in:
Florian Schmidt
2026-11-16 10:56:27 +01:00
parent 4fe64ee110
commit 5e60973ebf
4 changed files with 64 additions and 2 deletions
+1
View File
@@ -6,3 +6,4 @@ coverage/
.env.*
# runtime data when running from the repo
data/
apps/server/.bundle-test-*/