railwayapp / nixpacks

App source + Nix packages + Docker = Image
https://nixpacks.com
MIT License
2.5k stars 235 forks source link

Set Node v20 as default version #1144

Open ThimoDEV opened 1 month ago

ThimoDEV commented 1 month ago

Feature request

Node v18 is currently in maintenance mode, so for me it would make sense to have v20 as the default.

Is there a reason its by default still on v18?

Motivation

For Lucia auth I have to use Node v20 and I know I can override it, but it would be a minor upgrade but convenient to have.

Contribution

I could sent a PR if that helps, although I believe its a one line change?

coffee-cup commented 1 month ago

In most cases we recommend setting the Node version in a package.json or similar file. I think it would be a good idea to update the default soon though.

At Railway, we are holding off updating the default until an internal project is complete that prevents breaking existing apps that require the Node 18 default.