nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.19k stars 246 forks source link

use gaxios instead of axios #534

Closed simllll closed 3 years ago

simllll commented 3 years ago

As axios gets buggier and buggier from release to release, and is still in 0.x branch, we are looking already quite a long time for alternatives, I just stumpled upon gaxios. Has anyone experience with this already? It uses node-fetch on server, and native browser fetch on client, but has the same interface as axios itself.

I'm willing to fork this module and see if I can make a gaxios implenentation of it. What do you think? any pros/cons to this approach?

simllll commented 3 years ago

I did some work on this already, still in ealry testing, but here it is: https://github.com/hokify/nuxt-haxios-module

pi0 commented 3 years ago

You can alternatively use options.buld.alias.axios = 'haxios' if interfaces are same.