import path from 'node:path' import tailwindcss from '@tailwindcss/vite' import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { // "@/lib/format" → src/lib/format alias: { '@': path.resolve(import.meta.dirname, './src') }, }, server: { port: 5173, strictPort: true, // /api istekleri Rust backend'e yönlenir → aynı origin, CORS gerekmez proxy: { '/api': 'http://localhost:8080', }, }, })