You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
523 B

/**
* Generate health check JSON file at build time
*/
import { writeFileSync } from 'fs';
import { join } from 'path';
const healthz = {
status: 'ok',
service: 'aitherboard',
version: process.env.npm_package_version || '0.1.0',
buildTime: new Date().toISOString(),
gitCommit: process.env.GIT_COMMIT || 'unknown',
timestamp: Date.now()
};
const outputPath = join(process.cwd(), 'public', 'healthz.json');
writeFileSync(outputPath, JSON.stringify(healthz, null, 2));
console.log('Generated healthz.json');