Alnzac's picture
Fix AI report: JSON field mapping, local dev proxy, dotenv loading, fuller exam data sent to LLM
f5fad1d
raw
history blame contribute delete
512 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
// Forward all /api/* requests to the FastAPI backend
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
// Forward all /infer/* requests to the FastAPI backend
'/infer': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})