import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// Vite config — bind to 0.0.0.0 so the dev server is reachable
// from outside the container (k2's external/floating IP)
export default defineConfig({
  plugins: [react()],
  server: {
    host: '0.0.0.0',
    port: 5173,
    strictPort: true,
    watch: {
      usePolling: true // needed for file-change detection inside Docker on some hosts
    }
  }
})
