import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; import path from "node:path"; // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(import.meta.dirname, "./src"), }, }, server: { host: true, port: 5173, // Running inside the dev container; allow the mapped host. allowedHosts: true, watch: { // File events don't always propagate through the bind mount; poll instead. usePolling: true, }, }, });