ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] Setting environment variables is ineffective

Open
#4,033 10 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Try to deploy this app in my vercel, it can runs normally but I found that it will ignore env variable `BASE_URL`.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to Vercel
2. Set env variables "BASE_URL"
3. Deploy
4. See error

**Expected behavior**
When sending a request, NextWeb does not send it through the set environment variables. Instead, it initiates the request to the domain name in the webpage.

**Screenshots**
![18718891f9673f1a4d595cead52391c6](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/88354708/bffaaa75-568d-406d-aedd-3935d1b66b2c)

**Deployment**
- [ ] Docker
- [X] Vercel
- [ ] Server

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.