import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ react(), tailwindcss() ], preview: { port: 8080, strictPort: true }, server: { port: 8080, proxy: { '/api': { target: 'http://localhost:3000', changeOrigin: true, secure: false, // rewrite: (path) => path.replace(/^\/api/, '') } } } });