2025-02-15 01:26:10 -08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
2025-02-15 12:15:41 -08:00
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
2025-02-15 01:26:10 -08:00
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
2025-02-15 12:15:41 -08:00
|
|
|
plugins: [react(), tailwindcss()],
|
2025-02-15 01:26:10 -08:00
|
|
|
server: {
|
2025-02-15 12:15:41 -08:00
|
|
|
// For development only: proxy /api to backend running on separate port.
|
2025-02-15 01:26:10 -08:00
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:3000',
|
2025-02-15 16:28:47 -08:00
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true
|
2025-02-15 01:26:10 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|