diff --git a/backend/src/routes/health.ts b/backend/src/routes/health.ts index 39380fe3..77fe7277 100644 --- a/backend/src/routes/health.ts +++ b/backend/src/routes/health.ts @@ -45,6 +45,8 @@ interface ApiHealth extends HealthStatus { uptime: number; timestamp: string; version: string; + build_sha: string | null; + build_time: string | null; } interface DbHealth extends HealthStatus { @@ -113,6 +115,8 @@ async function getApiHealth(): Promise { uptime: Math.floor((Date.now() - serverStartTime) / 1000), timestamp: new Date().toISOString(), version: packageVersion, + build_sha: process.env.APP_GIT_SHA && process.env.APP_GIT_SHA !== 'unknown' ? process.env.APP_GIT_SHA : null, + build_time: process.env.APP_BUILD_TIME && process.env.APP_BUILD_TIME !== 'unknown' ? process.env.APP_BUILD_TIME : null, }; }