blob: 7d538948dbc09cecc433d5fd989db7dd264fa47f [file] [log] [blame]
Xing Jinwenff16b1e2025-06-05 00:29:26 +08001const { defineConfig } = require('@vue/cli-service')
2
3module.exports = defineConfig({
4 transpileDependencies: true,
5 devServer: {
6 port: 8080,
7 proxy: {
8 '/api': {
9 target: 'http://localhost:8081',
10 changeOrigin: true,
11 ws: true,
12 logLevel: 'debug'
vulgar5201055346a2025-06-05 14:15:55 +080013 },
14 '/category': {
15 target: 'http://localhost:8081',
16 changeOrigin: true,
17 pathRewrite: {
18 '^/category': '/api/category'
19 }
20 },
21 '/torrent': {
22 target: 'http://localhost:8081',
23 changeOrigin: true,
24 pathRewrite: {
25 '^/torrent': '/api/torrent'
26 }
27 },
28 '/auth': {
29 target: 'http://localhost:8081',
30 changeOrigin: true,
31 pathRewrite: {
32 '^/auth': '/api/auth'
33 }
Xing Jinwenff16b1e2025-06-05 00:29:26 +080034 }
35 }
36 }
37})