const { defineConfig } = require('@vue/cli-service') const proxytarget = process.env.VUE_PROXY_TARGET || 'http://localhost:8080' module.exports = defineConfig({ transpileDependencies: true, devServer: { host: '0.0.0.0', port: 80, open: true, client: { overlay: false }, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { target: proxytarget, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } } } } })