Show swagger-ui-react UI without needing node-gyp installed, to allow deploy the page into nodejs v20 in vercel.
npm install react-api-docShow swagger-ui-react UI without needing node-gyp installed, to allow deploy the page into nodejs v20 in vercel.
``ts``
import dynamic from "next/dynamic";
import { spec } from "./spec";
import "react-api-doc/dist/index.css"
const APIDoc = dynamic(() => import("react-api-doc"), { ssr: false });
export default async function ReactApiDocPage() {
return
}