This adds a new API endpoint, /api/models/unload/*model, that unloads a single model. In the UI when a model is in a ReadyState it will have a new button to unload it. Fixes #312
22 lines
567 B
TypeScript
22 lines
567 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
base: "/ui/",
|
|
build: {
|
|
outDir: "../proxy/ui_dist",
|
|
assetsDir: "assets",
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:8080", // Proxy API calls to Go backend during development
|
|
"/logs": "http://localhost:8080",
|
|
"/upstream": "http://localhost:8080",
|
|
"/unload": "http://localhost:8080",
|
|
},
|
|
},
|
|
});
|