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 d1e0c58 commit 768d8a9Copy full SHA for 768d8a9
app/api/webhooks/sanity-revalidate/route.ts
@@ -25,7 +25,8 @@ export async function POST(request: NextRequest) {
25
26
// Revalidate all sanity-tagged caches (the "heavy hammer" approach)
27
// This is a backup for when no visitors are active to trigger SanityLive revalidation
28
- revalidateTag("sanity");
+ // Next.js 16 requires a second argument — { expire: 0 } for immediate invalidation
29
+ revalidateTag("sanity", { expire: 0 });
30
31
return NextResponse.json({
32
revalidated: true,
0 commit comments