parent
658e347d72
commit
05932c110f
@ -1,20 +1,24 @@ |
|||||||
const { defineConfig } = require('@vue/cli-service') |
const { defineConfig } = require("@vue/cli-service"); |
||||||
const { BASE_URL } = require('./src/config') |
const { BASE_URL } = require("./src/config"); |
||||||
module.exports = defineConfig({ |
module.exports = defineConfig({ |
||||||
transpileDependencies: true, |
transpileDependencies: true, |
||||||
lintOnSave: false, |
lintOnSave: false, |
||||||
publicPath: BASE_URL, |
publicPath: BASE_URL, |
||||||
devServer: { |
devServer: { |
||||||
port: 8080, |
port: 8080, |
||||||
open: true,// vue项目启动时自动打开浏览器
|
open: true, // vue项目启动时自动打开浏览器
|
||||||
proxy: { |
proxy: { |
||||||
"/api": { |
"/api": { |
||||||
target: "http://8.217.66.254:3000", |
target: "https://flowise.tsl3060.com", |
||||||
changeOrigin: true, //是否跨域
|
changeOrigin: true, //是否跨域
|
||||||
|
logLevel: "debug", |
||||||
|
bypass: function (req, res, proxyOptions) { |
||||||
|
console.log(proxyOptions.target + req.url, req); |
||||||
|
}, |
||||||
pathRewrite: { |
pathRewrite: { |
||||||
"^/api": "", |
// "^/api": "",
|
||||||
}, |
}, |
||||||
}, |
}, |
||||||
}, |
}, |
||||||
}, |
}, |
||||||
}) |
}); |
||||||
|
Loading…
Reference in new issue