|
@@ -9,6 +9,8 @@ const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
const name = process.env.VUE_APP_TITLE || '若依管理系统'
|
|
|
|
|
|
+const baseUrl = 'http://localhost:8080'
|
|
|
+
|
|
|
const port = process.env.port || process.env.npm_config_port || 80
|
|
|
|
|
|
|
|
@@ -36,11 +38,16 @@ module.exports = {
|
|
|
proxy: {
|
|
|
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- target: `http://localhost:8080`,
|
|
|
+ target: baseUrl,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ '^/v3/api-docs/(.*)': {
|
|
|
+ target: baseUrl,
|
|
|
+ changeOrigin: true
|
|
|
}
|
|
|
},
|
|
|
disableHostCheck: true
|