import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], server: { host: '0.0.0.0', // Listen on all network interfaces port: 5173, hmr: { host: 'lvh.me', port: 5173, }, // Add lvh.me and its subdomains to allowed hosts // This is necessary for local development with subdomains // https://vitejs.dev/config/server-options.html#server-allowedhosts allowedHosts: [ '.lvh.me', // Allow all subdomains of lvh.me 'lvh.me', ], }, })