Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript
451 B
Raw Blame
import { PRODUCTS } from "@/lib/catalog";
import { KIND_ARCH } from "@/lib/products";

/** Dev only: what scripts/og/render.mjs should draw: every kind, then every catalog product. */
export async function GET() {
  if (process.env.NODE_ENV === "production") return new Response(null, { status: 404 });
  const picks = PRODUCTS.map((p) => ({ slug: p.slug }));
  return Response.json([...Object.keys(KIND_ARCH).map((kind) => ({ kind })), ...picks]);
}