Axios interceptor error
Unanswered
Entlebucher Mountain Dog posted this in #help-forum
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
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
@riský *you should stop using axios: <https://www.adios-axios.com/>... for example revalidation options are unavailable, and it isn't as supported by nextjs*
Entlebucher Mountain DogOP
then what should i use ?
@Entlebucher Mountain Dog then what should i use ?
native fetch api
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?