import tailwindcss from "@tailwindcss/vite"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [react(), tailwindcss()], server: { // Same-domain API in development too (decision 0.5.20). The server listens on // IPv4 only, so target 127.0.0.1 rather than localhost. proxy: { "/api": "http://127.0.0.1:3000" }, }, });