Files
badminton-scoreboard/vite.config.ts
T

20 lines
432 B
TypeScript
Raw Normal View History

2026-04-15 16:55:54 +08:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
2026-04-15 22:56:50 +08:00
server: {
port: 3501,
strictPort: true,
// W: 是 RaiDrive 網路磁碟,不會發 fs 事件,需用 polling 才能觸發 HMR
watch: {
usePolling: true,
interval: 300,
},
2026-04-15 22:56:50 +08:00
proxy: {
'/api': 'http://127.0.0.1:8788',
},
},
2026-04-15 16:55:54 +08:00
})