How to specify Node version for Oxygen in Hydrogen?

Hello,

I have a storefront using Hydrogen and deploying to Oxygen. It has been working perfectly for a few months now but I am having issues upgrading the node version that is used for the app.

It is currently set to node version 16, which is no longer maintained and I can not find anyway to upgrade. I have tried to set a NODE_VERSION env variable. I have also tried adding use-node-version=18.15.0 to the .npmrc file. Neither work. Can someone point me in the right direction to specifying the node version used when the app is build on Oxygen?

Regards,
Jason

Hello @jlemrond , you can change the Node.js version from your GitHub Action build file at “.github/workflows/oxygen-deployment-xxxxx.yml”.
For example: https://github.com/Weaverse/pilot.weaverse.dev/blob/72a7454833f3ad4ae80050fa78bedad786e23207/.github/workflows/oxygen-deployment-1000010106.yml#L22C12-L22C12

This is exactly what I was searching. Thank you for taking the time to respond.

1 Like