gradeops / frontend /vite.config.js
samsadar236
feat: deploy ControlPlane.ai — updated backend, frontend redesign, Responsible AI Gate
54f341c
Raw History Blame Contribute Delete
358 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// Proxy /api/* to the FastAPI backend at 8000 so we don't fight CORS in dev.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})