From a6976d4f7250e5ce227a5b1dfc1e1c15b783328f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahlstr=C3=B6m=20Kalle?= Date: Sat, 20 Jan 2024 23:46:41 +0200 Subject: [PATCH] Next: add healthCheck path for CDN probePath --- apps/web/src/app/next_api/health/route.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/web/src/app/next_api/health/route.ts diff --git a/apps/web/src/app/next_api/health/route.ts b/apps/web/src/app/next_api/health/route.ts new file mode 100644 index 00000000..2ed496f9 --- /dev/null +++ b/apps/web/src/app/next_api/health/route.ts @@ -0,0 +1,13 @@ +import type { NextRequest } from "next/server"; +import { NextResponse } from "next/server"; +// this is here for CDN probePath +export function GET(_: NextRequest): NextResponse { + return NextResponse.json( + { + status: "ok", + }, + { + status: 200, + }, + ); +}