NuxtN
Nuxt14mo ago
4 replies
23brewert

$fetch sends a HTTP request from both client and server?

Can someone help me disable the duplicate requests $fetch is sending from my server? Ex if someone presses a button to trigger an api call, it will send a request from my servers’s ip and another from my client ip. This is causing my api to do double the work for no reason. I don’t want to have to disable SSR.
Was this page helpful?