File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ import { NextResponse } from "next/server";
44import { 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 */
1016export 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
2531export async function POST ( req : Request ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments