Permalink
Browse files

feat: passing options via proxy option

  • Loading branch information...
pi0 committed Feb 4, 2018
1 parent 0aa8fd5 commit a923db3b3071329f6b8d20e8feb080ea2a9a7096
Showing with 5 additions and 2 deletions.
  1. +1 −1 README.md
  2. +4 −1 lib/module.js
@@ -324,7 +324,7 @@ You can easily integrate Axios with [Proxy Module](https://github.com/nuxt-commu
],
axios: {
proxy: true
proxy: true // Can be also an object with default options
},
proxy: {
@@ -73,7 +73,10 @@ module.exports = function nuxtAxios (_moduleOptions) {

// Proxy integration
if (options.proxy) {
this.requireModule('@nuxtjs/proxy')
this.requireModule([
'@nuxtjs/proxy',
typeof options.proxy === 'object' ? options.proxy : {}
])
}

/* eslint-disable no-console */

0 comments on commit a923db3

Please sign in to comment.