Files
sasa-membership/frontend/vite.config.ts
James Pattinson 74a4e3ede8 Container refactoring
Co-authored-by: Copilot <copilot@github.com>
2026-04-26 09:43:02 +00:00

25 lines
497 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 3000,
strictPort: true,
allowedHosts: process.env.VITE_ALLOWED_HOSTS ? process.env.VITE_ALLOWED_HOSTS.split(',') : true,
watch: {
usePolling: true
},
hmr: {
clientPort: 8050
},
proxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true
}
}
}
})