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>
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
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:8787"
|
||||
"/api": `http://127.0.0.1:${apiPort}`
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user