-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在vercel中部署,如何启用商业模式? #15
Comments
我在vercel中部署后,右上角的登录注册按钮没有了, |
那样就需要你 fork 我项目需要修改配置文件 选择商业模式(注意:商业模式目前还不完善~) |
上面的已经弄好了。 如果登录要换自己的服务器验证。好像有跨域的问题,跨域问题怎么解决? [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.
|
需要你在你自己服务器处理下跨域 你服务器那边设置请求头允许就可以 |
解决了。 vite.config.ts 里面配置了代理 |
新问题,,vite.config.ts 里面想读取 .env.production 和 .env.development里面的数据,达到部署的时候代理里面的target文件可以动态根据环境变化,这个咋弄? |
没有太理解是什么意思 |
如何进行限制必须登录后才能使用里面的功能?
The text was updated successfully, but these errors were encountered: