DocClassify / frontend /vite.config.js
Seth
Update
25bda12
raw
history blame contribute delete
289 Bytes
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"
}
}
});