1import type { APIRoute } from "astro";
2
3import { buildT3ProjectFileJsonSchema } from "@t3tools/shared/t3ProjectFile";
4
5// Rendered at build time; published at https://t3.codes/schema/t3.json so
6// t3.json files can reference it via "$schema" for editor/LSP support.
7export const GET: APIRoute = () =>
8 new Response(`${JSON.stringify(buildT3ProjectFileJsonSchema(), null, 2)}\n`, {
9 headers: { "Content-Type": "application/json" },
10 });