unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.92k stars 497 forks source link

Clearing Vercel Cache After Setting isr: true in Nuxt's routeRule Configuration #1984

Closed Vi-jay closed 10 months ago

Vi-jay commented 10 months ago

Describe the feature

Hello,

I am currently working on a Nuxt.js project and have set isr: true in the routeRule configuration. However, I am facing an issue with Vercel's cache not being cleared after this setting.

Could anyone provide guidance on how to clear Vercel's cache when isr: true is set in Nuxt's routeRule configuration? Any help would be greatly appreciated.

Thank you.

Additional information

Jamiewarb commented 5 months ago

Did you solve this? It's the top result in Google so would be good to get some info if you have it please :)

pi0 commented 5 months ago

You might want to use on-demand revalidation.

Docs: https://nitro.unjs.io/deploy/providers/vercel#on-demand-incremental-static-regeneration-isr