Next.js Discord

Discord Forum

Your thoughts on the best way to handle a NextJS app with the data source being an external API

Unanswered
Satin Angora posted this in #help-forum
Open in Discord
Satin AngoraOP
I am moving my startup frontend from Django/React to Next JS, and due to the fact that we also have a mobile app, the best way forward is having the APIs centralized on Django and reused across Next/Mobile app.

That being said, I was wondering what's the best way to handle something like that. fetch calls seemed too... basic? Maybe? I don't know if that's the right word. I've looked into TRPC as well, but I assume it would only be acting as a wrapper on top an actual fetch call inside of it since it's an external API.

Would love to be using something RTK-Query but I think that doesn't play well with SSR which is a big thing for us as well.

Is fetch just the way to go? It's a pretty big/huge app with already a well established user base (20-30k concurrent) so performance and a nice long term dev experience is pretty important

0 Replies