axios-module icon indicating copy to clipboard operation
axios-module copied to clipboard

Expose axios instance for use in server middleware

Open rchl opened this issue 5 years ago • 0 comments

I'd like to use axios instance created by this module in server middleware.

It's currently only available in webpack context and for server middleware I need to create my own which means I have to duplicate configuration and also I don't have helper methods available like $get.

The instance could be created directly from the module (not from the plugin as that runs later than server middlewares are parsed) and assigned to process.axios for example.

rchl avatar Oct 14 '20 17:10 rchl