We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aa8fd5 commit a923db3Copy full SHA for a923db3
README.md
@@ -324,7 +324,7 @@ You can easily integrate Axios with [Proxy Module](https://github.com/nuxt-commu
324
],
325
326
axios: {
327
- proxy: true
+ proxy: true // Can be also an object with default options
328
},
329
330
proxy: {
lib/module.js
@@ -73,7 +73,10 @@ module.exports = function nuxtAxios (_moduleOptions) {
73
74
// Proxy integration
75
if (options.proxy) {
76
- this.requireModule('@nuxtjs/proxy')
+ this.requireModule([
77
+ '@nuxtjs/proxy',
78
+ typeof options.proxy === 'object' ? options.proxy : {}
79
+ ])
80
}
81
82
/* eslint-disable no-console */
0 commit comments