slice 1g: Next.js M1 overview panel + Primary-Rule lint (ADR-0007)

Symbol command bar (Zustand active-symbol) -> OverviewPanel (price + day-change
shape/color/label per P7 G3 + Recharts sparkline + sector) + signup/login + ADR-0007
footer. next.config rewrites proxy /api -> backend:3001 (same-origin cookies). Vanilla
fetch tRPC client (decoupled from server Node types). Primary-Rule lint 2/2 green.
Slice 1 tracer bullet COMPLETE: 38 tests green, live-verified end-to-end.
This commit is contained in:
Investor Flow Build
2026-06-29 17:51:54 -04:00
parent 82079b3e66
commit a8b95e36e3
10 changed files with 567 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { NextConfig } from "next";
// Proxy /api/* to the local Bun/Node backend (slice 1f) so the SPA and backend share an
// origin — session cookies work without cross-origin/CORS gymnastics (DESIGN.md §2.1).
const nextConfig: NextConfig = {
rewrites: async () => [
{ source: "/api/:path*", destination: "http://localhost:3001/api/:path*" },
],
};
export default nextConfig;