esfiles / frontend /vite.config.ts
Besjon Cifliku
fix: fronentd doees not load in hf space
8042dc1
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",
},
},
});