Skip to content

Commit 8db94a3

Browse files
committed
increase max revalidation duration
1 parent 33d6192 commit 8db94a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/photography/revalidate/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { NextRequest, NextResponse } from "next/server";
22
import { revalidatePath } from "next/cache";
33

4+
export const maxDuration = 120; // This function can run for a maximum of 120 seconds
5+
46
// Webhook: https://<your-site>/photography/revalidate?secret=<token>
57
export async function POST(request: NextRequest) {
68
const secret = request.nextUrl.searchParams.get("secret");

0 commit comments

Comments
 (0)