Skip to content

Commit 12129b3

Browse files
author
Guillaume Chau
committed
fix(ui): wrong env var name
1 parent 73a1c7a commit 12129b3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/@vue/cli-ui/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VUE_CLI_UI_URL=
1+
VUE_APP_CLI_UI_URL=

packages/@vue/cli-ui/src/graphql-api/connectors/client-addons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { resolveModuleRoot } = require('../utils/resolve-path')
66

77
let addons = []
88

9-
let baseUrl = process.env.VUE_CLI_UI_URL
9+
let baseUrl = process.env.VUE_APP_CLI_UI_URL
1010
if (typeof baseUrl === 'undefined') {
1111
baseUrl = 'http://localhost:4000'
1212
} else {

packages/@vue/cli-ui/src/vue-apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createApolloClient } from 'vue-cli-plugin-apollo/graphql-client'
55
// Install the vue plugin
66
Vue.use(VueApollo)
77

8-
let endpoint = process.env.VUE_CLI_UI_URL
8+
let endpoint = process.env.VUE_APP_CLI_UI_URL
99
if (typeof endpoint === 'undefined') {
1010
endpoint = 'ws://localhost:4000/graphql'
1111
} else if (endpoint === '') {

packages/@vue/cli/lib/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function ui (options = {}, context = process.cwd()) {
88
}
99

1010
// Config
11-
process.env.VUE_CLI_UI_URL = ''
11+
process.env.VUE_APP_CLI_UI_URL = ''
1212

1313
if (!options.dev) {
1414
process.env.NODE_ENV = 'production'

0 commit comments

Comments
 (0)