Railway not using Node v18.16

Rrickitan5/22/2023
Hi Railway team,

Fan of the platform. But facing a problem I specified the following:

"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.
Rrickitan5/22/2023
N/A
Bbrody5/22/2023
if you need a specific minor version of node 18 it might be best to build with a dockerfile
Rrickitan5/22/2023
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
Rrickitan5/22/2023
I don't need a minor version I need 18.16
Bbrody5/22/2023
the 16 part of 18.16 is the minor part of the version
Bbrody5/22/2023
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
Bbrody5/22/2023
if i could see your repo i could maybe write you up a simple set and forget dockerfile
Rrickitan5/22/2023
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"


But not sure what commit to use or if it will work
Bbrody5/22/2023
are you on the teams plan?
Rrickitan5/22/2023
By using that commit 53dad..... I managed to get node to 18.15.0
Rrickitan5/22/2023
Not sure where to find the commit that will include further versions like 18.16
Rrickitan5/22/2023
Bbrody5/22/2023
are you a part of a team?
Rrickitan5/22/2023
No it's just me
Bbrody5/22/2023
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
Rrickitan5/22/2023
I didn't know
Rrickitan5/22/2023
thank you!
Bbrody5/22/2023
kinda misleading name since one person doesn't make a team, but its just the rules for commercial use of the platform 🙂
Aangelo5/23/2023
Hey @rickitan - If you don't mind me asking, what pkg depends on that node version?
Bbrody5/23/2023
fix-day-js
Rrickitan5/23/2023
Hi Angelo, pkg as NPM module?
Rrickitan5/23/2023
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
Aangelo5/23/2023
I figure- lemme engage JR here