Has anyone has run into any issues when publishing content on Netlify when using the Nextjs app router?.
We recently deployed a new site utilizing Nextjs' app router and cannot see content updates published live unless we clear the Netlify cache and deploy in the Netlify UI. We're waiting to hear back from Netlify support on the issue, but I thought I'd bring it up here in case anyone else has experienced anything similar.
We have a number of other sites on the same version of Nextjs (but not using the app directory) that do not exhibit this behavior. I'm wondering if there is some "gotcha" I missed in the Nextjs or Prismic documentation.
You should only need a webhook that sends a request to /api/revalidate; a webhook to Netlify to rebuild the site should not be necessary.
If you find on-demand revalidation does not work on Netlify, I recommend using Vercel or a host that supports on-demand revalidation, or finding a way to clear Netlify's build cache to remove any cached fetch() calls.
I have faced a similar problem and fortunately for me I have found a solution. Netlify is currently testing NextJs Runtime v5, you can follow the instructions here. After that all you need to do is setup a hook to https://your-website-domain/api/revalidate and trigger it. I hope this helps.