We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d6192 commit 8db94a3Copy full SHA for 8db94a3
src/app/photography/revalidate/route.ts
@@ -1,6 +1,8 @@
1
import { NextRequest, NextResponse } from "next/server";
2
import { revalidatePath } from "next/cache";
3
4
+export const maxDuration = 120; // This function can run for a maximum of 120 seconds
5
+
6
// Webhook: https://<your-site>/photography/revalidate?secret=<token>
7
export async function POST(request: NextRequest) {
8
const secret = request.nextUrl.searchParams.get("secret");
0 commit comments