Can't change Node version... need 23 stuck at 18
yungyoda
PROOP

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 = 23

I'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


yungyoda
PROOP

10 months ago

so i just change the builder to "railpack" or "railpacks"


yungyoda
PROOP

10 months ago

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


yungyoda
PROOP

10 months ago

This worked thank you


10 months ago

no problem!


10 months ago

!s


Status changed to Solved brody 11 months ago


omniaffix-dave
PRO

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

  • 16

  • 18 (Default)

  • 20

  • 22

  • 23


Status changed to Open Railway 11 months ago


Loading...