ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
73k stars 57.99k forks source link

[Bug] netlify现在无法发布最新版,只要设置变量就报错 #4698

Open nowindnowave opened 2 months ago

nowindnowave commented 2 months ago

Bug Description

10:06:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:06:13 AM: (Netlify Build completed in 2m 28.1s) 10:06:13 AM: /opt/build-bin/build: line 142: [: : integer expression expected 10:06:13 AM: /opt/build-bin/build: line 148: exit: : numeric argument required 10:06:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2

我只要在环境变量添加CODE或BASE_URL就会报错,只添加OPENAI_API_KEY不会报错可以正常使用,

Steps to Reproduce

10:06:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:06:13 AM: (Netlify Build completed in 2m 28.1s) 10:06:13 AM: /opt/build-bin/build: line 142: [: : integer expression expected 10:06:13 AM: /opt/build-bin/build: line 148: exit: : numeric argument required 10:06:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2

我只要在环境变量添加CODE或BASE_URL就会报错,只添加OPENAI_API_KEY不会报错可以正常使用,

Expected Behavior

netlify现在无法发布最新版,只要设置变量就报错

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] netlify cannot release the latest version now, and an error will be reported whenever variables are set.