子应用为Vite, 使用nginx配置解决域名/端口不固定的问题 #327
fanhaoyuan
started this conversation in
Ideas
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.
-
在打包时
base需要一个域名/ip的URL,但是在域名和端口未知的情况下,打包时无法确定。所以只能从
nginx入手利用
nginx中ngx_http_sub_module的sub_filter功能,把打包时虚拟的域名替换为nginx部署的域名/端口Beta Was this translation helpful? Give feedback.
All reactions