10 months ago
this is my railway.toml file
builder = "nixpacks"
buildCommand = "bun install && bun run build"
[deploy]
startCommand = "bun run start"
healthcheckPath = "http://localhost:3000/api/health"
healthcheckTimeout = 100
restartPolicyType = "on_failure"
[deploy.envs]
NODE_ENV = "production"
NIXPACKS_NODE_VERSION = 23I've tried setting another env with the same name. Didn't work. I also have engine.node configured in my package.json.
8 Replies
10 months ago
nixpacks doesnt support node 23, you would need to use railpack
also what is the best way to specify version? in the package.json or with env in the dashboard or env in the .toml file?
10 months ago
railpack is the correct value.
engines.node is the industry standard way
10 months ago
no problem!
10 months ago
!s
Status changed to Solved brody • 11 months ago
10 months ago
Nixpacks | Railway Docs
Then click Node-> Node | Nixpacks
Is this a railway thing and not a nixpacks thing?
Setup#
The following major versions are available
1618(Default)202223
Status changed to Open Railway • 11 months ago