import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react-swc'; import { fileURLToPath, URL } from 'node:url'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@shared': fileURLToPath(new URL('../shared', import.meta.url)) } }, server: { port: 5173, proxy: { '/api': { target: 'http://localhost:4000', changeOrigin: true } } } });