Heavy bot traffic to our API with node-fetch user agent? Friend or foe? #168
-
We've started to just recently incrementally adopt next.js hosted on vercel. Not too long after a slow roll out of the site, we noticed a lot of traffic hitting our API (close to 1M additional requests per day).
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
I've been getting this too. Occasionally I get a flood of request to my backend API from AWS IP addresses that overload my PHP server. I'm also using ISR. |
Beta Was this translation helpful? Give feedback.
-
This is a little embarrassing, but at the end of the day this was a fetch call that we were making inside of the getStaticProps method. I was able to identify that by setting a custom user agent in that method. Then my logs (unsurprisingly) switched to have the new user agent in them. |
Beta Was this translation helpful? Give feedback.
This is a little embarrassing, but at the end of the day this was a fetch call that we were making inside of the getStaticProps method. I was able to identify that by setting a custom user agent in that method. Then my logs (unsurprisingly) switched to have the new user agent in them.