fix(ui): wrong env var name

This commit is contained in:
Guillaume Chau
2018-05-25 02:17:57 +02:00
parent 73a1c7aa96
commit 12129b3be4
4 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
VUE_CLI_UI_URL=
VUE_APP_CLI_UI_URL=

View File

@@ -6,7 +6,7 @@ const { resolveModuleRoot } = require('../utils/resolve-path')
let addons = []
let baseUrl = process.env.VUE_CLI_UI_URL
let baseUrl = process.env.VUE_APP_CLI_UI_URL
if (typeof baseUrl === 'undefined') {
baseUrl = 'http://localhost:4000'
} else {

View File

@@ -5,7 +5,7 @@ import { createApolloClient } from 'vue-cli-plugin-apollo/graphql-client'
// Install the vue plugin
Vue.use(VueApollo)
let endpoint = process.env.VUE_CLI_UI_URL
let endpoint = process.env.VUE_APP_CLI_UI_URL
if (typeof endpoint === 'undefined') {
endpoint = 'ws://localhost:4000/graphql'
} else if (endpoint === '') {

View File

@@ -8,7 +8,7 @@ async function ui (options = {}, context = process.cwd()) {
}
// Config
process.env.VUE_CLI_UI_URL = ''
process.env.VUE_APP_CLI_UI_URL = ''
if (!options.dev) {
process.env.NODE_ENV = 'production'