You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
843 B

4 months ago
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: [
'ml-matrix',
'@antv/g6',
'@antv/layout',
'@antv/util'
],
devServer: {
host: '0.0.0.0',
4 months ago
port: 81,
4 months ago
open: true,
proxy: {
4 months ago
'/api': {
target: 'http://localhost:8088',
4 months ago
changeOrigin: true,
4 months ago
// 不需要 pathRewrite,因为前后都是 /api/xxx
4 months ago
},
'/resource': {
target: 'http://localhost:8088', // 更新为8088端口
changeOrigin: true
4 months ago
}
},
4 months ago
historyApiFallback: {
disableDotRule: true,
verbose: true
},
4 months ago
// 替代 disableHostCheck: true
allowedHosts: 'all' // 允许所有 Host 访问(开发环境安全)
},
}
)