提交 ee8b06b9 编写于 作者: D DCloud_LXH

chore: delete proxy

上级 c963481c
......@@ -64,29 +64,6 @@ const config = {
.plugin('normallize-link')
.use(require('./markdown/normallizeLink'))
}
},
chainWebpack: (config, isServer) => {
console.log('config :>> ', config);
config.devServer.proxy({
'/ext': {
target: 'http://localhost:3000', // 后台api
changeOrigin: true, //是否跨域
secure: false,
// secure: true,
pathRewrite: {
'^/ext': '' //需要rewrite的,
}
},
'/ask': {
target: 'https://ask.dcloud.net.cn', // 后台api
changeOrigin: true, //是否跨域
secure: false,
// secure: true,
pathRewrite: {
'^/ask': '' //需要rewrite的,
}
}
})
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册