nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
993 stars 57 forks source link

[Question] A way to specify the Node.js version for the deployment runtime #368

Closed germsb closed 2 weeks ago

germsb commented 2 weeks ago

Hello,

Currently, when deploying, Node.js version 18.17.1 is used for the build process. Some of my dependencies, specifically @simplewebauthn/server, require Node.js 20 or higher, leading to compatibility warnings and potential runtime issues.

Would it be possible to allow specifying a preferred Node.js version?

Thank you in advance for your help

atinux commented 2 weeks ago

Hi @germsb

You can change the node version with the NODE_VERSION environment variable in the Nuxthub Admin and redeploy your project.