CedsTrash
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