Coder Social home page Coder Social logo

Comments (7)

52yaoer avatar 52yaoer commented on August 17, 2024

我在vercel中部署后,右上角的登录注册按钮没有了,

from chatgpt-web.

79W avatar 79W commented on August 17, 2024

我在vercel中部署后,右上角的登录注册按钮没有了,

那样就需要你 fork 我项目需要修改配置文件 选择商业模式(注意:商业模式目前还不完善~)

from chatgpt-web.

52yaoer avatar 52yaoer commented on August 17, 2024

上面的已经弄好了。

如果登录要换自己的服务器验证。好像有跨域的问题,跨域问题怎么解决?

[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.

79W avatar 79W commented on August 17, 2024

需要你在你自己服务器处理下跨域 你服务器那边设置请求头允许就可以

from chatgpt-web.

52yaoer avatar 52yaoer commented on August 17, 2024

解决了。 vite.config.ts 里面配置了代理

from chatgpt-web.

52yaoer avatar 52yaoer commented on August 17, 2024

新问题,,vite.config.ts 里面想读取 .env.production 和 .env.development里面的数据,达到部署的时候代理里面的target文件可以动态根据环境变化,这个咋弄?

from chatgpt-web.

79E avatar 79E commented on August 17, 2024

新问题,,vite.config.ts 里面想读取 .env.production 和 .env.development里面的数据,达到部署的时候代理里面的target文件可以动态根据环境变化,这个咋弄?

没有太理解是什么意思

from chatgpt-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.