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>
19 lines
461 B
TypeScript
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}`
|
|
}
|
|
}
|
|
});
|