feat: add healthcheck endpoints, Dockerfiles, and admin middleware configuration

This commit is contained in:
2026-10-21 22:59:35 +02:00
parent f5548ab326
commit 2fdabe1dfd
7 changed files with 50 additions and 1 deletions

15
app/api/health/route.ts Normal file
View File

@@ -0,0 +1,15 @@
import { NextResponse } from 'next/server';
export const dynamic = 'force-dynamic';
export async function GET() {
return NextResponse.json(
{
status: 'ok',
service: 'afrohub-front',
timestamp: new Date().toISOString(),
uptime: process.uptime(),
},
{ status: 200 }
);
}