import { NextResponse } from "next/server"; // The live "Who he is" bio. READ-ONLY: it returns the cached copy that the // crawl tick refreshes from Wikipedia (lib/bio.js). A page load never calls // Wikipedia — so this is fast and a wiki outage can't break the front page // (getBio() falls back to a short static blurb). export const dynamic = "force-dynamic"; export async function GET() { try { const { getBio } = await import("../../../lib/bio"); const bio = await getBio(); return NextResponse.json({ ok: true, ...bio }); } catch (e) { return NextResponse.json({ ok: false, error: String((e && e.message) || e) }, { status: 500 }); } }