R
Railwayβ€’2y 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β€’2y ago
Project ID: N/A
rickitan
rickitanOPβ€’2y ago
N/A
Brody
Brodyβ€’2y ago
if you need a specific minor version of node 18 it might be best to build with a dockerfile
rickitan
rickitanOPβ€’2y 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β€’2y 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
rickitanOPβ€’2y 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β€’2y ago
are you on the teams plan?
rickitan
rickitanOPβ€’2y 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
rickitanOPβ€’2y ago
Brody
Brodyβ€’2y ago
are you a part of a team?
rickitan
rickitanOPβ€’2y ago
No it's just me
Brody
Brodyβ€’2y 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
rickitanOPβ€’2y ago
I didn't know thank you!
Brody
Brodyβ€’2y 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β€’2y ago
Flagging this thread. A team member will be with you shortly.
angelo
angeloβ€’2y ago
Hey @rickitan - If you don't mind me asking, what pkg depends on that node version?
Brody
Brodyβ€’2y ago
fix-day-js
rickitan
rickitanOPβ€’2y ago
Hi Angelo, pkg as NPM module? Any date package that doesn't include Timezone data (e.g Luxon and Dayjs) will parse the wrong time on Mexico. Because they rely on the underlying OS Timezone data. If you do process.versions.tz on the default node version you get from Railway 18.12.1 it returns 2022e which is missing the timezone update from mexico that was introduced in 2022f @angelo
angelo
angeloβ€’2y ago
I figure- lemme engage JR here
Want results from more Discord servers?
Add your server