devserver proxy 动态热修改 热更新 避免重新编译加载 使用nginx
https://cloud.tencent.com/developer/article/1659045
里边有个问题是
target: "127.0.0.1:8090", // 这里必须是127.0.0.1,即本机环回地址,这样才能让nginx转发
location / {
#rewrite ^(.*)$ /abc/$1 break;
rewrite ^/abc/(.*)$ /$1 break; #相当于pathRewrite: {
'^/abc/': ''
}
#proxy_pass http://192.xxx.xxx.xxx:8080; #相当于target: 'http://192.xxx.xxx.xxx:8080'
}