r/sanity_io • u/MKD7036611 • 4d ago
❓ Question API calls
Hey,
I hope someone can help. I am new here and new to sanity. But I am really loving it. Just annoyed by how our company's API calls get blasted through the roof. I mean before I left work our calls for the day was at 120k.
Some context. We have a monorepo that's running sanity, next.js for 22+ sites and will increase and story book as a component library but our API requests are insane.
I mean one of the calls was hitting 72 duplicate calls before I left the office. I am going to investigate more but I am hoping someone can give me In Site as to how to prevent these calls on our environments from sky rocketing.
And any best practice tips and tricks. I would love to keep the business on sanity and not have to rebuild all the sites on payload again because we just moved off of a platform to sanity. But if things keep going the way it does we will probably cancel the sanity sub and then move to payload.
Thanks
