feat: add CI unit test, /api/health, Dockerfile HEALTHCHECK, bundle-analyzer
This commit is contained in:
10
src/app/api/health/route.ts
Normal file
10
src/app/api/health/route.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { NextResponse } from "next/server"
|
||||
|
||||
export const dynamic = "force-dynamic"
|
||||
|
||||
export async function GET(): Promise<NextResponse<{ status: string; timestamp: string }>> {
|
||||
return NextResponse.json({
|
||||
status: "ok",
|
||||
timestamp: new Date().toISOString(),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user