fix: sitemaps pt.2

This commit is contained in:
2026-05-04 21:41:25 +08:00
parent 633117f452
commit f0db19b243
2 changed files with 21 additions and 28 deletions
+1 -2
View File
@@ -1,4 +1,4 @@
import { revalidatePath, revalidateTag } from "next/cache"
import { revalidatePath } from "next/cache"
import { NextRequest, NextResponse } from "next/server"
/**
@@ -38,7 +38,6 @@ export async function POST(request: NextRequest): Promise<NextResponse> {
}
try {
revalidateTag("sitemap", "default")
revalidatePath("/sitemap.xml")
return NextResponse.json({
revalidated: true,