Skip to content

Commit 72747e4

Browse files
committed
refactor: remove vercel cron configuration and update reissue API documentation for external uptime monitoring
1 parent 07b8a0d commit 72747e4

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

apps/ticket/src/app/api/reissue/route.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ import { NextResponse } from "next/server";
44
import { API_URL } from "@/data/constants";
55

66
/**
7-
* vercel Lambda 깨우기 용 ping API
7+
* vercel Lambda 깨우기 용 ping API (5분 주기로 호출)
88
* 브라우저에서 주기적으로 호출하여 Lambda 깨우기 (Cold Start 방지)
9+
*
10+
* NOTE:
11+
* vercel cron 에서 무료 요금제로는 최소 하루 단위로 호출이 가능하여
12+
* 외부 서비스 UptimeRobot 사용
13+
*
14+
* @see https://dashboard.uptimerobot.com/monitors/802448042
915
*/
1016
export async function GET(req: Request) {
1117
const { searchParams } = new URL(req.url);
@@ -19,7 +25,7 @@ export async function GET(req: Request) {
1925
return new Response("warm", { status: 200 });
2026
}
2127

22-
return new Response("Method Not Allowed", { status: 405 });
28+
return new Response("Method Not Allowed!", { status: 405 });
2329
}
2430

2531
export async function POST(req: Request) {

apps/ticket/vercel.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)