Files
elysium/apps/web/vite.config.ts
T
hikari cd12d4dbec feat: show app version in sidebar, remove version from about page
Displays the app version below the Elysium title in the sidebar.
Removes the separate client/API version cards from the About panel.
Also fixes the Vite dev proxy port to match the API server.
2026-03-07 11:38:26 -08:00

27 lines
568 B
TypeScript

import { readFileSync } from "node:fs";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
const { version: WEB_VERSION } = JSON.parse(
readFileSync("./package.json", "utf-8"),
) as { version: string };
export default defineConfig({
define: {
__WEB_VERSION__: JSON.stringify(WEB_VERSION),
},
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": {
target: "http://localhost:3898",
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
build: {
outDir: "dist",
},
});