| 123456789101112131415161718192021222324252627282930 |
- import path from 'node:path';
- import { defineConfig } from 'vitest/config';
- import react from '@vitejs/plugin-react';
- import tailwindcss from '@tailwindcss/vite';
- // https://vite.dev/config/
- export default defineConfig({
- plugins: [react(), tailwindcss()],
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- },
- },
- server: {
- port: 5173,
- proxy: {
- // Forward API calls to the FastAPI backend (default port 8000).
- '/api': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- },
- },
- },
- test: {
- globals: true,
- environment: 'jsdom',
- setupFiles: ['./src/test/setup.ts'],
- css: false,
- },
- });
|