Comments (7)
我在vercel中部署后,右上角的登录注册按钮没有了,
from chatgpt-web.
我在vercel中部署后,右上角的登录注册按钮没有了,
那样就需要你 fork 我项目需要修改配置文件 选择商业模式(注意:商业模式目前还不完善~)
from chatgpt-web.
上面的已经弄好了。
如果登录要换自己的服务器验证。好像有跨域的问题,跨域问题怎么解决?
[Error] Origin http://localhost:5173 is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] Fetch API cannot load http://127.0.0.1/chat/login due to access control checks.
[Error] Failed to load resource: Origin http://localhost:5173 is not allowed by Access-Control-Allow-Origin. Status code: 200 (login, line 0)
[Error] Warning: [antd: notification] Static function can not consume context like dynamic theme. Please use 'App' component instead.
warning (chunk-6BXEYDVV.js:1463)
call (chunk-6BXEYDVV.js:1482)
warningOnce (chunk-6BXEYDVV.js:1487)
warning4 (chunk-QPZWPJG3.js:6698)
(匿名函数) (chunk-QPZWPJG3.js:8088)
open2 (chunk-QPZWPJG3.js:59549)
(匿名函数) (index.ts:70)
interceptorsErrorResponse (index.ts:69)
(匿名函数) (index.ts:138)
(匿名函数) (index.ts:128)
from chatgpt-web.
需要你在你自己服务器处理下跨域 你服务器那边设置请求头允许就可以
from chatgpt-web.
解决了。 vite.config.ts 里面配置了代理
from chatgpt-web.
新问题,,vite.config.ts 里面想读取 .env.production 和 .env.development里面的数据,达到部署的时候代理里面的target文件可以动态根据环境变化,这个咋弄?
from chatgpt-web.
新问题,,vite.config.ts 里面想读取 .env.production 和 .env.development里面的数据,达到部署的时候代理里面的target文件可以动态根据环境变化,这个咋弄?
没有太理解是什么意思
from chatgpt-web.
Related Issues (20)
- Vercel 部署不了
- 是否是跨域问题
- 这个项目存在以下问题,望修复! HOT 1
- 求更新
- 关于调用gpt api sse响应掉字的问题 HOT 1
- 如何禁用api额度检查
- 本人把后端全部通过python重写,有需要的可联系 HOT 2
- 使用问题
- 虎皮椒支付接口错误 HOT 1
- 管理员怎么登陆 HOT 1
- 无法注册
- issues怎么了? HOT 1
- 为什么我搭建好一直显示网络连接失败
- Vercel 一键部署无法注册
- 优化小建议
- Vercel 部署失败
- README.md的演示地址和Vercel部署密码错误 HOT 1
- 我用 golang 实现一套后端,欢迎试用 HOT 3
- I18n support
- 如何修改配置 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-web.