forked from PeterAlaks/lyric-display-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
40 lines (39 loc) · 754 Bytes
/
Copy pathvite.config.js
File metadata and controls
40 lines (39 loc) · 754 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
base: './',
build: {
outDir: 'dist',
},
worker: {
format: 'es'
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
server: {
host: true,
proxy: {
'/api': {
target: 'http://127.0.0.1:4000',
changeOrigin: true,
secure: false,
},
'/socket.io': {
target: 'http://127.0.0.1:4000',
changeOrigin: true,
ws: true,
secure: false,
},
'/media': {
target: 'http://127.0.0.1:4000',
changeOrigin: true,
secure: false,
},
},
},
});