Unable to build Next.js app

So i am facing this issue
You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0" is required.
But looking at this shows that the Nodejs version cloudflare is running is lower and needs and upgrade to be able to work with the latest Nextjs version. Any suggestions on how can i tackle this without downgrading my Next js app Thanks
5 Replies
Shadow Gaming
Shadow Gaming6mo ago
set a variable NODE_VERSION: (version you want) try it
ANIKET
ANIKETOP6mo ago
Okay
mr nooli
mr nooli5mo ago
I've tried this also - but it's not working.
Erik
Erik5mo ago
I added a node version to wrangler
[vars]
NODE_VERSION = "18.18.0"
[vars]
NODE_VERSION = "18.18.0"
ANIKET
ANIKETOP2mo ago
Try adding a variable in the build settings

Did you find this page helpful?