fix(deploy): add start script and nixpacks.toml for production serving with sirv
This commit is contained in:
12
nixpacks.toml
Normal file
12
nixpacks.toml
Normal 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}"
|
||||
Reference in New Issue
Block a user