-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
26 lines (25 loc) · 755 Bytes
/
vite.config.js
File metadata and controls
26 lines (25 loc) · 755 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
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/current_track_xhr': 'http://localhost:5000',
'/play': 'http://localhost:5000',
'/pause': 'http://localhost:5000',
'/skip': 'http://localhost:5000',
'/like': 'http://localhost:5000',
'/unlike': 'http://localhost:5000',
'/sign_out': 'http://localhost:5000',
'/currently_playing': 'http://localhost:5000',
'/login': 'http://localhost:5000',
'/auth': 'http://localhost:5000',
}
},
build: {
outDir: 'static/react-build',
emptyOutDir: true,
manifest: true, // Generate manifest.json for Flask to read
}
})