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