OptionalapiFolder?: stringOptionalautoDoc?: boolean | AutoDocOptionsOptionaloutputFile?: stringWrite the generated spec to this JSON file.
OptionalscanBuildOutput?: booleanGlob compiled files under .next/server.
Default: only when the source API folder is missing and Next.js is not
currently compiling (standalone / runtime fallback).
OptionalschemaFolders?: string[]OptionalspecFile?: stringLoad a prebuilt OpenAPI JSON file (for example public/swagger.json).
When the file exists it is returned as-is, which is the standalone-output
path: generate at build time, serve the file at runtime.
Generate basic OpenAPI operations from App Router route files.