Cloudflare node version change

Hi dev, please help me out on changing the node version,
I have tried to set the NODE_VERSION 20.9.0 in the env form, still it is responding
No description
6 Replies
UCHIHA
UCHIHAOP7mo ago
No description
Miia
Miia7mo ago
I use a .nvmrc file with the value 22, I also use “engines”: { “node": ”22.x” }, inside the package.json
UCHIHA
UCHIHAOP7mo ago
No description
UCHIHA
UCHIHAOP7mo ago
i don't know why it's a very basic astro project but it's been 11minuts for build time did i made any mistake here? @Miia if you are here does cloudflare don't recog the sharp package?
UCHIHA
UCHIHAOP7mo ago
No description
Miia
Miia7mo ago
const cloudflareOpts = cloudflare({
platformProxy: {
enabled: true,
},
imageService: "cloudflare",
routes: {
extend: {
include: [{ pattern: "/*" }],
},
},
});
const cloudflareOpts = cloudflare({
platformProxy: {
enabled: true,
},
imageService: "cloudflare",
routes: {
extend: {
include: [{ pattern: "/*" }],
},
},
});
}); I do not use sharp, I use the cloudflare service.

Did you find this page helpful?