import path from "path" import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ plugins: [tailwindcss(), react()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), "react": path.resolve(__dirname, "./node_modules/react"), "react-dom": path.resolve(__dirname, "./node_modules/react-dom"), }, }, server: { port: 5173, proxy: { '/api': { target: process.env.VITE_API_URL || 'http://localhost:3000', changeOrigin: true, }, }, }, test: { globals: true, environment: "jsdom", setupFiles: "./src/test/setup.ts", server: { deps: { inline: ["@tanstack/react-table"], }, }, }, })