Add HealthPage component foAdd health page for route-level health checkr service health check
This commit is contained in:
13
src/app/health/page.tsx
Normal file
13
src/app/health/page.tsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import { getStaticServiceHealth } from '@/lib/config';
|
||||||
|
|
||||||
|
export const revalidate = 0;
|
||||||
|
|
||||||
|
export default async function HealthPage() {
|
||||||
|
const health = await getStaticServiceHealth();
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h1>Health Check</h1>
|
||||||
|
<pre>{JSON.stringify(health, null, 2)}</pre>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user