UNPKG

next-openapi-gen

Version:

Automatically generate OpenAPI 3.0 documentation from Next.js projects, with support for TypeScript types and Zod schemas.

17 lines (14 loc) 293 B
export const redocDeps = ["redoc"]; export function RedocUI(outputFile) { return ` "use client"; import { RedocStandalone } from "redoc"; export default async function ApiDocsPage() { return ( <section> <RedocStandalone specUrl="/${outputFile}" /> </section> ); } `; }