Files
konduktor/frontend/vite.config.ts
T

14 lines
307 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// Proxy /api to the FastAPI backend so the frontend can use same-origin fetches.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:8000',
},
},
})