cloudflare / cloudflare/developer-platform
🐛 BUG:When building on Cloudflare Pages, I have set the environment variable NODE_VERSION=22.14.0, but it doesn't take effect. The logs still indicate that the build environment is fixed at Node.js version 18.17.1, causing the build to fail.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Which Cloudflare product(s) does this pertain to?
Pages
### What versions are you using?
C3
### What operating system and version are you using?
Windows 11
### Please provide a link to a minimal reproduction
_No response_
### Describe the Bug
When building on Cloudflare Pages, I have set the environment variable NODE_VERSION=22.14.0, but it doesn't take effect. The logs still indicate that the build environment is fixed at Node.js version 18.17.1, causing the build to fail.
3:23:38.403 | 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.
-- | --
13:23:38.423 | Failed: Error while executing user command. Exited with error code: 1
13:23:38.434 | Failed: build command exited with code: 1
13:23:39.680 | Failed: error occurred while running build command
### Please provide any relevant error logs

Guía de contribución
Línea de trabajo
No se nombra ningún archivo del repositorio ni ninguna prueba. Empieza comparando la configuración de compilación de Pages y la configuración de C3 con los registros de compilación, centrándote en por qué se ignora NODE_VERSION=22.14.0 mientras se usa Node.js 18.17.1 para la compilación de Next.js. Se considera terminado cuando se usa la versión de Node.js compatible configurada, o cuando se documentan la limitación y la configuración necesaria.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- next.js, node.js
- Área
- cloud, devops
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100