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

a year 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

a year ago

nixpacks doesnt support node 23, you would need to use railpack


yungyoda
PROOP

a year ago

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


yungyoda
PROOP

a year 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?


a year ago

railpack is the correct value.

engines.node is the industry standard way


yungyoda
PROOP

a year ago

This worked thank you


a year ago

no problem!


a year ago

!s


Status changed to Solved brody about 1 year ago


omniaffix-dave
PRO

a year 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 about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...