Skip to content

Instantly share code, notes, and snippets.

@fubits1
Created August 16, 2025 08:50
Show Gist options
  • Select an option

  • Save fubits1/2efde8b4b6d14834210b55304d9f013e to your computer and use it in GitHub Desktop.

Select an option

Save fubits1/2efde8b4b6d14834210b55304d9f013e to your computer and use it in GitHub Desktop.
nixpacks with nodejs_24 (Node v24.5.0)
buildImage = 'ghcr.io/railwayapp/nixpacks:latest'
[phases.setup]
nixPkgs = ["nodejs_24", "pnpm_10"]
# node v24.5.0
nixpkgsArchive = 'cf93ceb06388f5714302b702cccf2c77f6064442'
[phases.install]
dependsOn = ["setup"]
cmd = "pnpm install --frozen-lockfile"
[phases.build]
dependsOn = ["install"]
cmd = "pnpm build"
[start]
cmd = "node build"
@fubits1
Copy link
Author

fubits1 commented Aug 16, 2025

important: remove "engines" field from package.json, otherwise it reverts to node v22.17.0 for whatever reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment