File size: 289 Bytes
25bda12
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// IMPORTANT: proxy API calls to backend when running both inside one container
export default defineConfig({
  plugins: [react()],
  server: {
    proxy: {
      "/api": "http://127.0.0.1:8000"
    }
  }
});