fix(deploy): add start script and nixpacks.toml for production serving with sirv

This commit is contained in:
2026-10-23 22:34:40 -04:00
parent 270b402ccc
commit 95b6465244
3 changed files with 155 additions and 2 deletions

12
nixpacks.toml Normal file
View File

@@ -0,0 +1,12 @@
# Nixpacks configuration for Quartiles static SPA
[phases.setup]
nixPkgs = ["nodejs_20"]
[phases.install]
cmds = ["npm ci"]
[phases.build]
cmds = ["npm run build"]
[start]
cmd = "sirv dist --single --host 0.0.0.0 --port ${PORT:-3000}"