R
Railwayβ€’16mo ago
rickitan

Railway not using Node v18.16

Hi Railway team, Fan of the platform. But facing a problem I specified the following:
"engines": {
"node": "18.16"
}
"engines": {
"node": "18.16"
}
But Railway insists on using on using 18.12.1 (showing the warning that I get on the build phase) How can I make it use the version I'm specifying? I'd also like to use v19 in another project. Thanks.
19 Replies
Percy
Percyβ€’16mo ago
Project ID: N/A
rickitan
rickitanβ€’16mo ago
N/A
Brody
Brodyβ€’16mo ago
if you need a specific minor version of node 18 it might be best to build with a dockerfile
rickitan
rickitanβ€’16mo ago
is there any other option @Brody ? I don't want to mess with Dockerfiles. The reason why I need to update is that I rely on timezone data being current, and it's out of date in the current version for Mexico so it's breaking my app I don't need a minor version I need 18.16
Brody
Brodyβ€’16mo ago
the 16 part of 18.16 is the minor part of the version nix packages only has 18.14.1 on the stable channel, and nixpacks isnt using the current nix packages archive, so dockerfile is the way to go if i could see your repo i could maybe write you up a simple set and forget dockerfile
rickitan
rickitanβ€’16mo ago
Thanks for the help. The repo is private because it's a live SaaS with 200+ customers. I could invite you to it, or provide any extra info here that will help you. I was also told at some point that I could create a file called nixpacks.toml and put something like this inside:
[phases.setup]
nixpkgsArchive = "53dad94e874c9586e71decf82d972dfb640ef044"
[phases.setup]
nixpkgsArchive = "53dad94e874c9586e71decf82d972dfb640ef044"
But not sure what commit to use or if it will work
Brody
Brodyβ€’16mo ago
are you on the teams plan?
rickitan
rickitanβ€’16mo ago
By using that commit 53dad..... I managed to get node to 18.15.0 Not sure where to find the commit that will include further versions like 18.16
rickitan
rickitanβ€’16mo ago
Brody
Brodyβ€’16mo ago
are you a part of a team?
rickitan
rickitanβ€’16mo ago
No it's just me
Brody
Brodyβ€’16mo ago
you are using railway for commercial purposes, you would need to be on a teams account, then once you upgrade you can ask a railway engineer
rickitan
rickitanβ€’16mo ago
I didn't know thank you!
Brody
Brodyβ€’16mo ago
kinda misleading name since one person doesn't make a team, but its just the rules for commercial use of the platform πŸ™‚
Percy
Percyβ€’16mo ago
Flagging this thread. A team member will be with you shortly.
Want results from more Discord servers?
Add your server