diff --git a/pages/api/incr.ts b/pages/api/incr.ts index 79c2ba0e..860c4c6d 100644 --- a/pages/api/incr.ts +++ b/pages/api/incr.ts @@ -39,7 +39,7 @@ export default async function incr(req: NextRequest): Promise { ex: 24 * 60 * 60, }); if (!isNew) { - new NextResponse(null, { status: 202 }); + return new NextResponse(null, { status: 202 }); } } await redis.incr(["pageviews", "projects", slug].join(":"));