import { readFile } from "node:fs/promises"; import { resolve } from "node:path"; export const runtime = "nodejs"; export const dynamic = "force-static"; /** Build-time snapshot of the single source; no YAML parsing or rewriting. */ export async function GET() { const specification = await readFile(resolve(process.cwd(), "../../openapi.yaml")); return new Response(specification, { headers: { "content-type": "application/yaml; charset=utf-8" }, }); }