How to set up a Web Hook for On-Demand ISR in Next.js
Last updated: Sep 20, 2022
I’m setting up a web hook for on-demand ISR in NextJS. I now have a webhook sending data to my production site, but it’s not clear what request it’s sending. I need to setup the NextJS API endpoint to handle the ISR, but without seeing the incoming API request, it feels like shooting in the dark. Any ideas here?
Sep 20, 2022, 5:14 AM
Right, so it sends a POST request with the fields you define in the webhook settings as part of the body.