-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.js
32 lines (31 loc) · 872 Bytes
/
vite.config.js
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
26
27
28
29
30
31
32
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api/850': {
target: 'https://8508958360.for-seoul.synctreengine.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/850/, ''),
secure: false,
ws: true,
},
'/api/246': {
target: 'https://2468280591.for-seoul.synctreengine.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/246/, ''),
secure: false,
ws: true,
},
'/api/904': {
target: 'https://9042753645.for-seoul.synctreengine.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/904/, ''),
secure: false,
ws: true,
},
},
},
})