bookmark/bookmark_front/vue.config.js
2023-04-01 17:29:45 +08:00

21 lines
467 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
lintOnSave: false,
configureWebpack: {
devtool: "source-map"
},
devServer: {
proxy: {
"/bookmark/api": {
//这里最好有一个 /
target: "http://localhost:8088", // 服务器端接口地址
ws: true, //如果要代理 websockets配置这个参数
// 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite: {
"^/bookmark/api": "/bookmark/api"
}
}
}
}
};