Hey everyone!
So, I’m trying to figure out how to integrate Axios con Next 14 in my project. I’ve used Axios before, but with Next 14, I’m kinda lost on the best way to set it up.
Anyone got tips or a practical example? Like, should I create a custom instance or just use it directly in the components? Also, what about handling errors or caching?
I’ve seen some people use it in API routes, but idk if that’s the most efficient way. Any advice or code snippets would be super helpful!
Thanks in advance, y’all! 🙌
So, I’m trying to figure out how to integrate Axios con Next 14 in my project. I’ve used Axios before, but with Next 14, I’m kinda lost on the best way to set it up.
Anyone got tips or a practical example? Like, should I create a custom instance or just use it directly in the components? Also, what about handling errors or caching?
I’ve seen some people use it in API routes, but idk if that’s the most efficient way. Any advice or code snippets would be super helpful!
Thanks in advance, y’all! 🙌
