Next.js Discord

Discord Forum

Best practice to rate limit api calls during getStaticProps during build.

Unanswered
Alaska pollock posted this in #help-forum
Open in Discord
Alaska pollockOP
Hey I was wondering if anyone knows how to limit the rate api calls can be made across workerthreads during the next.js build.

Thanks 🙂

4 Replies

What I don't get is that this will break your build ?
You might want to setup incremental rendering instead
If the page has no dynamic requirements and no generateStaticParams I think that's the default
Yellow croaker
I am also trying to deal with this. I found this https://axios-cache-interceptor.js.org/