提交 5ba38931 authored 作者: Administrator's avatar Administrator

更新代码

上级 6ec32952
server { server {
listen 80; listen 83;
#charset koi8-r; #charset koi8-r;
access_log /var/log/nginx/host.access.log main; access_log /var/log/nginx/host.access.log main;
......
...@@ -86,15 +86,8 @@ export default ({ command, mode }) => { ...@@ -86,15 +86,8 @@ export default ({ command, mode }) => {
// '/foo': '', // '/foo': '',
// 选项写法 // 选项写法
"/lic": { "/lic": {
target: "http://192.168.1.27:8090", target: "http://192.168.1.41:8090",
// rewrite: (path) => path.replace(/^\/api/, '')
}, },
// 正则表达式写法
// '^/fallback/.*': {
// target: 'http://jsonplaceholder.typicode.com',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/fallback/, '')
// },
}, },
hmr: { hmr: {
overlay: true, // 屏蔽服务器报错 overlay: true, // 屏蔽服务器报错
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论