安瑾然
2023-02-21 73b03e19aaed8221245bbdd72d1f61e6f889546b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        host: 'localhost',
        port: 9098,
        open: true,
        proxy: {
            '/api': {
                target: 'http://localhost:8080',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
            '/minio': {
                target: 'http://221.237.182.28:19000',
                changeOrigin: true,
                pathRewrite: {
                    '^/minio': ''
                }
            }
        }
    }
})