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.
This commit is contained in:
Jp
2026-02-02 15:54:51 +08:00
parent b2bd4cba02
commit cdbf2cdc3b

View File

@@ -1,7 +1,10 @@
providers = ["node"] providers = ["node"]
[phases.setup] [phases.setup]
nixPkgs = ["python3", "gnumake", "gcc", "sqlite"] nixPkgs = ["nodejs", "python3", "gnumake", "gcc", "sqlite"]
[envs]
PYTHON = "python3"
[phases.install] [phases.install]
cmds = ["npm ci"] cmds = ["npm ci"]