File size: 511 Bytes
db764ae bf9e9a4 8042dc1 db764ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
base: "./",
build: {
assetsDir: "static",
cssCodeSplit: false,
rollupOptions: {
output: {
inlineDynamicImports: true,
},
},
},
server: {
proxy: {
"/api/logs/stream": {
target: "http://localhost:8000",
headers: { "Accept": "text/event-stream" },
},
"/api": "http://localhost:8000",
},
},
});
|