UNPKG

next-openapi-gen

Version:

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

17 lines (14 loc) 305 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> ); } `; }