Skip to content

Commit

Permalink
feat: better baseURL message
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Aug 30, 2017
1 parent a341185 commit 61432a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const chalk = require('chalk')
const path = require('path')
const { hostname } = require('os')
const { URL } = require('whatwg-url')
const debug = require('debug')('nuxt:axios')

module.exports = function nuxtAxios (moduleOptions) {
const port = process.env.PORT || process.env.npm_package_config_nuxt_port || 3000
Expand Down Expand Up @@ -50,7 +51,7 @@ module.exports = function nuxtAxios (moduleOptions) {
})

/* eslint-disable no-console */
console.log(`[AXIOS] Base URL: ${chalk.green(options.baseURL)} , Browser: ${chalk.green(options.browserBaseURL)}`)
debug(`BaseURL: ${chalk.green(options.baseURL)} (Browser: ${chalk.green(options.browserBaseURL)})`)
}

module.exports.meta = require('../package.json')
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"dependencies": {
"axios": "^0.16.2",
"chalk": "^2.1.0",
"debug": "^3.0.1",
"nuxt": "^1.0.0-rc8",
"whatwg-url": "^6.1.0"
},
Expand Down

0 comments on commit 61432a1

Please sign in to comment.