File size: 457 Bytes
092334a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  // Relative asset paths so the built bundle works served from any sub-path.
  base: "./",
  server: {
    // In dev, proxy data requests to the FastAPI backend on :8000.
    proxy: {
      "/api": "http://localhost:8000",
      "/sample_customers.json": "http://localhost:8000",
    },
  },
});