Next.js Discord

Discord Forum

Fetch error

Unanswered
Carpenter wasp posted this in #help-forum
Open in Discord
Carpenter waspOP
Im getting this error and i dont know how to fix it (its a discord botlist)

6 Replies

Carpenter waspOP
Carpenter waspOP
Someone
you shouldn't fetch your own api inside your server
Carpenter waspOP
I dont understand
Basically you want to be doing the fetch in the server component. What you’re currently doing is fetching from your route handler then fetching that data again in your server component