19 lines
449 B
TypeScript
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",
|
|
},
|
|
},
|
|
});
|