CedsTrash
Empty Nitro cache on Vercel deployment
Hi everyone, I'm trying to figure out how to clear my Nitro cache when deploying to vercel. I thought it would be automatic, but only he Vercel cache is properly cleared, not the Nitro one. I have to manually call my custom endpoint in order to call
cache.removeItem('nitro:handlers:......)
PS: I use KV for storage.
Any idea?
Thanks!6 replies
defineCachedEventHandler - set maxAge from environment variable
Hi everyone, I'm trying to figure out how to set my
maxAge
value from my config because I want it to be different in staging vs production:
I would like to set maxAge
to config.NITRO_CACHE_TTL
but since it expects a number I can't use a function.
Would someone know how to do achieve this?
Thanks.9 replies