/** * ============================================================ * SVGarden — https://www.svgarden.dev * Author : Simon-Pierre Boucher * Contact: contact@spboucher.ai * File : src/pages/build-info.json.js * Desc : Build-time endpoint — timestamp + snippet count for /healthz * ============================================================ */ import { loadSnippets } from '../lib/snippets.mjs'; export async function GET() { const snippets = await loadSnippets(); return new Response( JSON.stringify({ built: new Date().toISOString(), snippets: snippets.length }), { headers: { 'Content-Type': 'application/json' } } ); }