There was an error while loading. Please reload this page.
2 parents 1cf1c91 + bce58d0 commit 24609f4Copy full SHA for 24609f4
1 file changed
web/app/api/revalidate-sanity/route.ts
@@ -47,7 +47,7 @@ export async function POST(req: NextRequest) {
47
const docLang = body?.lang
48
const docSlug = body?.slug
49
50
- if (!docType || !docId || !docSlug || !docLang) {
+ if (!docType && !docSlug && !docLang) {
51
const message = 'Bad Request'
52
return new Response(JSON.stringify({ message, body }), { status: 400 })
53
}
0 commit comments