Next js getStaticProps is fetching too fast

Viewed 22

I am using getStaticProps to render my page. But getStaticProps is fetching the api too fast that api server cannot handle it. When I commit the code to vercel, it always failed in build time. Therefore, I am looking for the solution whether getStaticProps can limit its fetch time at several seconds once.

Hope someone could help me.

0 Answers
Related