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