Files
calorie_tracker_2/nixpacks.toml
Jp cdbf2cdc3b build: add nodejs and python env for nixpacks setup
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.
2026-02-02 15:54:51 +08:00

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"