Next.js Discord

Discord Forum

Axios interceptor error

Unanswered
Entlebucher Mountain Dog posted this in #help-forum
Open in Discord
Entlebucher Mountain DogOP
i was trying create a axios intstance in my next js app derectory
but getting an error when trying call an api in server using axiso intsance
https://pastebin.com/Vswajrny

10 Replies

you should stop using axios: https://www.adios-axios.com/... for example revalidation options are unavailable, and it isn't as supported by nextjs
o.O nassa beat me
but what was your error
if you read the bottom of the page, it gives you alternatives
Entlebucher Mountain DogOP
is there any way to create an instance of native fetch ?
@riský if you read the bottom of the page, it gives you alternatives
Entlebucher Mountain DogOP
i'm on it
@riský if you read the bottom of the page, it gives you alternatives
Entlebucher Mountain DogOP
can you please give me an example?