Next.js Discord

Discord Forum

Fetch error

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

6 Replies

Avatar
Carpenter waspOP
Image
Avatar
Carpenter waspOP
Someone
Avatar
you shouldn't fetch your own api inside your server
Avatar
Carpenter waspOP
I dont understand
Avatar
Plott Hound
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