Files
blackroad-os-web/app/api/health/route.ts
Alexa Amundson 458c2c044b feat: real-time live data integration
- lib/live-data.ts: Shared TypeScript client for blackroad-live-data Worker
- components/live-stats.tsx: LiveStatsBar, RecentRepos, AgentStatusGrid components
- app/page.tsx: Import LiveStatsBar in main page header

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-24 14:29:09 -06:00

22 lines
542 B
TypeScript

import { NextResponse } from 'next/server';
export const runtime = 'edge';
export async function GET() {
const health = {
status: 'healthy',
service: 'blackroad-os-web',
version: process.env.npm_package_version || '0.1.0',
timestamp: new Date().toISOString(),
uptime: process.uptime ? process.uptime() : null,
environment: process.env.NODE_ENV || 'development',
};
return NextResponse.json(health, {
status: 200,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
},
});
}