部署方案 #162
clearcodecn
started this conversation in
Ideas
部署方案
#162
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
实现项目
https://github.com/clearcodecn/chatgpt-demo-proxy
本地服务器代理方式部署. 详见下面的图解:
/api/*
接口,使用代理方式,访问远程的地址./_astro/*
直接地址模糊匹配,访问本地的文件路径, 也就是npm run build
之后的/dist/client
文件夹的静态资源.代理方式可以用下面的方式实现,
goalng
代码:放一个在线体验的地址:
https://www.x-sms.cn/gpt
Beta Was this translation helpful? Give feedback.
All reactions