17 lines
341 B
TypeScript
17 lines
341 B
TypeScript
import { NextResponse } from 'next/server'
|
|
|
|
/**
|
|
* Health check endpoint for Docker HEALTHCHECK
|
|
* Returns 200 OK if the server is running
|
|
*/
|
|
export async function GET() {
|
|
return NextResponse.json(
|
|
{
|
|
status: 'healthy',
|
|
timestamp: new Date().toISOString(),
|
|
uptime: process.uptime(),
|
|
},
|
|
{ status: 200 }
|
|
)
|
|
}
|