Files
embycovers/frontend/vite.config.ts
T
2026-06-08 00:01:55 +12:00

19 lines
449 B
TypeScript

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",
},
},
});