The Node.js package was missing from the nixPkgs list, which is required for the npm ci command to run. Also explicitly set the PYTHON environment variable to ensure the correct Python version is used during the build.
17 lines
232 B
TOML
17 lines
232 B
TOML
providers = ["node"]
|
|
|
|
[phases.setup]
|
|
nixPkgs = ["nodejs", "python3", "gnumake", "gcc", "sqlite"]
|
|
|
|
[envs]
|
|
PYTHON = "python3"
|
|
|
|
[phases.install]
|
|
cmds = ["npm ci"]
|
|
|
|
[phases.build]
|
|
cmds = ["npm run build"]
|
|
|
|
[start]
|
|
cmd = "npm run start"
|