fix(web): paint the chart page shell before engine calls
BUG-715/716/717: typed engine failures with logs and split copy, natal-only open, on-demand tabs, 10s timeout, in-memory cache, no speed-promise eyebrow.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
import { parseChartViewLayers } from "@/lib/chart-view-engine";
|
||||
import { loadChartView } from "@/lib/chart-view-service";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
export const maxDuration = 60;
|
||||
export const maxDuration = 20;
|
||||
|
||||
export async function GET() {
|
||||
const result = await loadChartView();
|
||||
export async function GET(request: Request) {
|
||||
const layers = parseChartViewLayers(new URL(request.url).searchParams.get("layers"));
|
||||
const result = await loadChartView({ layers });
|
||||
return NextResponse.json(result.body, { status: result.httpStatus });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user