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 f7dacee commit d17c36fCopy full SHA for d17c36f
app/api/webhooks/sanity-revalidate/route.ts
@@ -48,7 +48,8 @@ export async function POST(request: NextRequest) {
48
49
// For public content types, revalidate the sanity tag as a fallback.
50
// This only affects pages that still use Next.js cache tags (e.g., sitemap).
51
- revalidateTag("sanity");
+ // Next.js 16 requires a second argument — { expire: 0 } for immediate invalidation
52
+ revalidateTag("sanity", { expire: 0 });
53
54
return NextResponse.json({
55
revalidated: true,
0 commit comments