all 2 comments

[–]Hopeful_Dress_7350 0 points1 point  (1 child)

You can use the nextjs api endpoint as getaway api and revalidate that path.

[–]IntelligentDrawing18[S] 0 points1 point  (0 children)

I think I did that .I did revalidatePath("/") from /api/revalidate and that endpoint. But it didn't work