Files
TallyNote/vite.config.ts
T
Qiufeng 9719429f4a
TallyNote release / linux-x64 (push) Failing after 2m41s
feat: add TallyNote local reimbursement ledger
2026-08-29 01:02:29 +08:00

22 lines
447 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const apiPort = Number(process.env.TALLYNOTE_PORT ?? 3000);
export default defineConfig({
root: "web",
plugins: [react()],
server: {
host: "127.0.0.1",
port: 5173,
proxy: {
"/api": `http://127.0.0.1:${apiPort}`,
"/health": `http://127.0.0.1:${apiPort}`,
},
},
build: {
outDir: "../dist/web",
emptyOutDir: true,
},
});