-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (32 loc) · 757 Bytes
/
vite.config.js
File metadata and controls
33 lines (32 loc) · 757 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
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
build: {
rollupOptions: {
input: {
main: 'index.html',
home: 'home.html',
reset_password: 'reset-password.html'
}
}
},
css: {
postcss: {
plugins: [
// PurgeCSS removed
]
}
},
server: {
proxy: {
'/login': 'http://localhost:3000',
'/register': 'http://localhost:3000',
'/notes': 'http://localhost:3000',
'/logout': 'http://localhost:3000',
'/forgot-password': 'http://localhost:3000',
'/reset-password': 'http://localhost:3000',
'/toggle-sidebar': 'http://localhost:3000',
// Add more API endpoints here as needed
}
}
});