-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
33 lines (32 loc) · 904 Bytes
/
vite.config.ts
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
import {Output} from '@mui/icons-material';
import react from '@vitejs/plugin-react';
import {visualizer} from 'rollup-plugin-visualizer';
import {defineConfig} from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [
react(),
tsconfigPaths(),
visualizer(),
VitePWA(),
],
build: {
sourcemap: true,
},
server: {
proxy: {
'^/getMyShows.*': {
target: 'http://localhost:8000/getMyShows?limit=50&tivo=Bolt&offset=0',
changeOrigin: true,
},
'^/stream/.*': {
target: 'http://localhost:8000',
changeOrigin: true,
},
'^/session-streaming/.*': {
target: 'http://localhost:8000',
},
},
},
});