import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // npm run dev: the page on http://localhost:5173, the API asked of the Python server (port 8770) export default defineConfig({ plugins: [react()], server: { proxy: { "/api": "http://127.0.0.1:8770" } }, });