import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react' import path from "path" import tailwindcss from "@tailwindcss/vite" export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, server: { proxy: { '/api': 'http://localhost:8080' } }, test: { globals: true, environment: 'jsdom', setupFiles: ['./src/test/setup.ts'], css: true, }, // ensures relative asset paths to support being served behind a subpath base: "./" })