Homelabtoolkit v1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
// The FastAPI backend serves the built app from ./dist and owns every /api route.
|
||||
// During `npm run dev` we proxy /api (and Emby/Navidrome image routes) to it.
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: "dist",
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
proxy: {
|
||||
"/api": "http://localhost:8500",
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user