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

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    // Bind on both IPv4 and IPv6 loopback. Vite's default "localhost" host
    // resolves to ::1 only on macOS, which makes curl 127.0.0.1:5173 (used by
    // the watchdog and by some CI probes) fail with ECONNREFUSED while the
    // server is healthy. '0.0.0.0' (equivalently `host: true`) listens on
    // every interface and both address families.
    host: '0.0.0.0',
  },
})
