Caching API Request on Vercel build time

Hello Everyone,
I am trying to fetch 3rd party apis to populate some data on Next.js page router with SSG.
Let’s say this api /api/route/ returns some contents needs to be displayed on the page.
But I have several different pages in different route configuration using that data.
so I am calling that api in several page files on getStaticProps() method.
Is there any possible way to cache that api request on vercel build time, so that during build I only make one api call to the server?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.