-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
41 lines (40 loc) · 994 Bytes
/
Copy pathvite.config.js
File metadata and controls
41 lines (40 loc) · 994 Bytes
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
33
34
35
36
37
38
39
40
41
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api/saavn': {
target: 'https://saavn.sumit.co',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/saavn/, '/api'),
secure: false,
},
'/api/yt': {
target: 'http://localhost:3001',
changeOrigin: true,
},
'/api/track': {
target: 'http://localhost:3001',
changeOrigin: true,
},
'/api/recommendations': {
target: 'http://localhost:3001',
changeOrigin: true,
},
'/api/metrics': {
target: 'http://localhost:3001',
changeOrigin: true,
},
'/api/plugins': {
target: 'http://localhost:3001',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:3001',
changeOrigin: true,
},
}
}
})