Skip to content

Commit

Permalink
fix(ui): wrong env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed May 25, 2018
1 parent 73a1c7a commit 12129b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VUE_CLI_UI_URL=
VUE_APP_CLI_UI_URL=
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/src/vue-apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 12129b3

Please sign in to comment.