mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-02-05 22:48:27 -06:00
fix(ui): wrong env var name
This commit is contained in:
@@ -1 +1 @@
|
||||
VUE_CLI_UI_URL=
|
||||
VUE_APP_CLI_UI_URL=
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 === '') {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user