feat: render CMS SEO metadata and refresh published page caches

This commit is contained in:
2026-10-11 18:05:47 +08:00
parent a8e2863cc4
commit 870b9b4282
19 changed files with 310 additions and 35 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ export async function POST(request: NextRequest) {
}
for (const tag of tags) {
// Next.js 16 要求传入 cache profile;"max" 表示立即使该标签下的缓存完全失效。
revalidateTag(tag, "max");
revalidateTag(tag, { expire: 0 });
}
return NextResponse.json({ revalidated: tags });