I am trying to sync my clerk to mongo db but not able to do it . In the clerk dashboard it is showing as failed.Please refer screenshot.
I HAVE PROVIDED ALL THE RELEVANT CODE BELOW .PLEASE HELP I AM STUCK AT THIS FROM PAST MANY DAYS
middleware.js >>>>>>>>>>>>
import { authMiddleware } from "@clerk/nextjs";
export default authMiddleware({
publicRoutes: ["/"],
ignoredRoutes: ["/api/webhooks(.)"],[[[enter image description here](https://i.sstatic.net/MBPUOUip.png)](https://i.sstatic.net/1hsHOU3L.png)](https://i.sstatic.net/po4ZeAfg.png)
});
export const config = {
matcher: ["/((?!...|_next).)", "/", "/(api|trpc)(.*)"],
};
NEXT_CLERK_WEBHOOK_SECRET=whsec_xBs7le7+z8Nmz8vdBHiX3jc7IQqJAKmv
[clerk webhook[enter image description here](https://i.sstatic.net/bfoBfnUr.png)](https://i.sstatic.net/UD1jepeE.png)
New contributor
zafar imam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.