next-swagger-doc
    Preparing search index...

    Function shouldScanBuildDirectory

    • Whether compiled files under .next/server should be globbed.

      Globbing .next while Next.js is compiling can fail Vercel builds with ENOENT: .../.next/export-detail.json. Prefer source files; scan compiled output only as a runtime fallback when the source folder is gone.

      Parameters

      • __namedParameters: {
            buildDirectory: string;
            nextPhase?: string;
            scanBuildOutput?: boolean;
            sourceDirectory: string;
        }

      Returns boolean