Closed 13416157913 closed 1 year ago
NODE_VERSION是否是16? cloudflare pages 的Edge Runtime 要node 16才支持
我也是 NODE_VERSION 也设置的node 16
我也是 NODE_VERSION 也设置的node 16
方便截一下构建配置的图看看吗
我也是 NODE_VERSION 也设置的node 16
知道了,是cloudflare/next-on-pages的版本问题
Build command
设置为 npx @cloudflare/next-on-pages@pre-v1 --experimental-minify
即可
npx @cloudflare/next-on-pages@pre-v1 --experimental-minify
Error: Could not access built-in Node.js modules. Please make sure that your Cloudflare Pages project has the 'nodejs_compat' compatibility flag set.