24 lines
464 B
JavaScript
24 lines
464 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
include: [
|
|
'@fullcalendar/core',
|
|
'@fullcalendar/react',
|
|
'@fullcalendar/daygrid',
|
|
'@fullcalendar/timegrid',
|
|
'@fullcalendar/interaction',
|
|
],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|