heartbeat-monitor/node_modules/next/dist/diagnostics/build-diagnostics.d.ts
Matt Bruce bed1169443 Initial commit: Heartbeat Monitor dashboard
- Full-featured monitoring dashboard for local web apps
- Real-time status tracking with uptime percentages
- Visual sparklines for status history
- Add/Edit/Delete apps dynamically
- Categories and color coding
- Auto-refresh every 30 seconds
- API endpoints for apps and status management
2026-02-18 11:16:01 -06:00

36 lines
1.4 KiB
TypeScript

import type { ExportAppResult } from '../export/types';
interface BuildDiagnostics {
buildStage?: string;
buildOptions?: Record<string, string>;
}
/**
* Saves the exact version of Next.js that was used to build the app to a diagnostics file.
*/
export declare function recordFrameworkVersion(version: string): Promise<void>;
/**
* Saves build diagnostics information to a file. This method can be called
* multiple times during a build to save additional information that can help
* debug a build such as what stage the build was in when a failure happened.
* Each time this method is called, the new information will be merged with any
* existing build diagnostics that previously existed.
*/
export declare function updateBuildDiagnostics(diagnostics: BuildDiagnostics): Promise<void>;
/**
* Writes fetch metrics collected during static generation to a file.
*/
export declare function recordFetchMetrics(exportResult: ExportAppResult): Promise<void>;
interface IncrementalBuildDiagnostics {
changedAppPaths?: string[];
unchangedAppPaths?: string[];
changedPagePaths?: string[];
unchangedPagePaths?: string[];
changedDependencies?: Record<string, string>;
shuttleGitSha?: string;
currentGitSha?: string;
}
/**
* Writes incremental build metrics to a file.
*/
export declare function updateIncrementalBuildMetrics(diagnostics: IncrementalBuildDiagnostics): Promise<void>;
export {};