File size: 585 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { docs } from "@/.velite"
export const dynamic = "force-static"
export async function GET() {
let content =
"<SYSTEM>Documentation for the styling system in Chakra UI v3.</SYSTEM>\n\n"
const stylingDocs = docs.filter((doc) => doc.slug.startsWith("docs/styling"))
for (const doc of stylingDocs) {
if (!doc.llm || doc.llm?.length === 0) continue
content += `# ${doc.title}\n\n${doc.llm}\n\n`
}
return new Response(content, {
headers: {
"Content-Type": "text/plain; charset=utf-8",
"Cache-Control": "public, max-age=3600",
},
})
}
|