const { defineConfig } = require('@vue/cli-service') | |
module.exports = defineConfig({ | |
transpileDependencies: true, | |
devServer: { | |
port: 8080, | |
proxy: { | |
'/api': { | |
target: 'http://localhost:8081', | |
changeOrigin: true, | |
ws: true, | |
logLevel: 'debug' | |
}, | |
'/category': { | |
target: 'http://localhost:8081', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/category': '/api/category' | |
} | |
}, | |
'/torrent': { | |
target: 'http://localhost:8081', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/torrent': '/api/torrent' | |
} | |
}, | |
'/auth': { | |
target: 'http://localhost:8081', | |
changeOrigin: true, | |
pathRewrite: { | |
'^/auth': '/api/auth' | |
} | |
} | |
} | |
} | |
}) |