When will Pages support Node 20+?

Don't see any option for a version that's greater than Node 18, which is causing a bunch of our code to fail since we've been working with 23 locally. Any plans to support later Node versions for Pages?
No description
6 Replies
Hard@Work
Hard@Work•2mo ago
Have you tried setting NODE_VERSION to 20?
polyphilz
polyphilzOP•2mo ago
yeahhhh just tried it and that worked 🤦 - thanks!
polyphilz
polyphilzOP•2mo ago
Actually looking at the logs it seems the NODE_VERSION can't be overridden the way you described:
2025-03-27T01:35:19.35241Z .. |  WARN  Unsupported engine: wanted: {"node":"^22.0.0"} (current: {"node":"v18.17.1","pnpm":"8.15.4"})
2025-03-27T01:35:19.35241Z .. |  WARN  Unsupported engine: wanted: {"node":"^22.0.0"} (current: {"node":"v18.17.1","pnpm":"8.15.4"})
polyphilz
polyphilzOP•2mo ago
The node version v18.17.1 is in line with what's in the docs here: https://developers.cloudflare.com/pages/configuration/build-image/#supported-languages-and-tools
Cloudflare Docs
Build image · Cloudflare Pages docs
Cloudflare Pages' build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
From An unknown user
From An unknown user
polyphilz
polyphilzOP•2mo ago
Please let me know if I'm doing something wrong here, otherwise the original question stands - are there any plans for Node 22 support in Pages?
Patrick M
Patrick M•4w ago
If the env variable is not working, try committing a .nvmrc or .node-version containing the desired node version

Did you find this page helpful?