Permalink
Browse files

feat: better baseURL message

  • Loading branch information...
pi0 committed Aug 30, 2017
1 parent a341185 commit 61432a19163dcd6fc6330919fff1156f9b69f124
Showing with 3 additions and 1 deletion.
  1. +2 −1 lib/index.js
  2. +1 −0 package.json
@@ -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
@@ -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')
@@ -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"
},

0 comments on commit 61432a1

Please sign in to comment.