x-dr/chatgptProxyAPI

安装第3种方法,打开https://xxx.xxx/api报以下错误

13416157913 opened this issue · 4 comments

Error: Could not access built-in Node.js modules. Please make sure that your Cloudflare Pages project has the 'nodejs_compat' compatibility flag set.

x-dr commented

NODE_VERSION是否是16? cloudflare pages 的Edge Runtime 要node 16才支持

我也是 NODE_VERSION 也设置的node 16

x-dr commented

我也是 NODE_VERSION 也设置的node 16

方便截一下构建配置的图看看吗

x-dr commented

我也是 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

image