caching data from external api
I have an API route that just calls an external API and massages the response a bit. I get maximum 1k api calls per day, so I’d like to cache the responses of this API. Does nextjs/vercel have a built-in way to do this? I read something about how they added some extra options to fetch but I can’t tell if that’s only client-side. Cheers!
1 Reply
I know you can cache trpc calls, and invalidate them, check useUtils..
not sure if that would work correctly for external apis, or if there is a lot of data to be cached