Files
quant-trading/web/vite.config.ts
Gahow Wang 5716267309 feat(ui): split client into Live and Strategy pages and wire new routes
Rebuilds the client into Live (watchlist with charts, fundamentals, news,
quant analysis) and Strategy (backtest runner / precomputed results) pages,
adds the corresponding /api/stocks/:symbol/chart|fundamentals|related|quant
and /api/strategies endpoints, and updates project tooling.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 23:21:03 +08:00

19 lines
461 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const host = process.env.HOST ?? "127.0.0.1";
const clientPort = Number(process.env.CLIENT_PORT ?? 5173);
const apiPort = Number(process.env.PORT ?? 8787);
export default defineConfig({
plugins: [react()],
server: {
host,
port: clientPort,
allowedHosts: ["gahow-pc.ipads-lab.se.sjtu.edu.cn"],
proxy: {
"/api": `http://127.0.0.1:${apiPort}`
}
}
});