blob: 7d538948dbc09cecc433d5fd989db7dd264fa47f [file] [log] [blame]
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'
}
}
}
}
})