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.
- 主要言語
- 言語のデータがありません
- スター
- 1
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### 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

コントリビューションガイド
調査の方向性
リポジトリのファイルもテストも指定されていません。まず、Pages のビルド設定と C3 のセットアップをビルドログと比較し、NODE_VERSION=22.14.0 が無視され、Next.js のビルドに Node.js 18.17.1 が使われる理由に焦点を当ててください。設定されたサポート対象の Node.js バージョンが使用されるか、制限と必要な設定が文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- next.js, node.js
- 領域
- cloud, devops
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100