File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let addons = []
8
8
9
9
let baseUrl = process . env . VUE_APP_CLI_UI_URL
10
10
if ( typeof baseUrl === 'undefined' ) {
11
- baseUrl = ' http://localhost:4000'
11
+ baseUrl = ` http://localhost:${ process . env . VUE_APP_GRAPHQL_PORT } `
12
12
} else {
13
13
baseUrl = baseUrl . replace ( / w s : \/ \/ ( [ a - z 0 - 9 _ - ] + : \d + ) .* / i, 'http://$1' )
14
14
}
Original file line number Diff line number Diff line change 2
2
"name" : " @vue/cli-ui" ,
3
3
"version" : " 3.0.3" ,
4
4
"scripts" : {
5
- "serve" : " cross-env VUE_APP_CLI_UI_URL=ws://localhost:4000 /graphql vue-cli-service serve" ,
5
+ "serve" : " cross-env VUE_APP_CLI_UI_URL=ws://localhost:4030 /graphql VUE_APP_GRAPHQL_PORT=4030 vue-cli-service serve" ,
6
6
"build" : " vue-cli-service build" ,
7
7
"lint" : " vue-cli-service lint" ,
8
- "apollo" : " cross-env VUE_APP_CLI_UI_DEV=true VUE_APP_GRAPHQL_PORT=4000 vue-cli-service apollo:watch" ,
8
+ "apollo" : " cross-env VUE_APP_CLI_UI_DEV=true VUE_APP_GRAPHQL_PORT=4030 vue-cli-service apollo:watch" ,
9
9
"apollo:run" : " cross-env VUE_CLI_DEBUG=true VUE_CLI_IPC=vue-cli-dev vue-cli-service apollo:run" ,
10
10
"apollo:run:test" : " cross-env VUE_CLI_UI_TEST=true VUE_APP_GRAPHQL_PORT=4040 VUE_APP_CLI_UI_URL=ws://localhost:4040/graphql VUE_CLI_IPC=vue-cli-test vue-cli-service apollo:watch" ,
11
11
"prepublishOnly" : " yarn run lint --no-fix && yarn run build" ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default {
77
77
imageUrl () {
78
78
// Fix images in development
79
79
if (process .env .VUE_APP_CLI_UI_DEV && this .image .charAt (0 ) === ' /' ) {
80
- return ` http://localhost:4000 ${ this .image } `
80
+ return ` http://localhost:${ process . env . VUE_APP_GRAPHQL_PORT } ${this .image } `
81
81
}
82
82
return this .image
83
83
}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default {
77
77
methods: {
78
78
imageSrc (url ) {
79
79
if (process .env .VUE_APP_CLI_UI_DEV && url .charAt (0 ) === ' /' ) {
80
- return ` http://localhost:4000 ${ url} `
80
+ return ` http://localhost:${ process . env . VUE_APP_GRAPHQL_PORT } ${ url} `
81
81
}
82
82
return url
83
83
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Vue.use(VueApollo)
15
15
16
16
let endpoint = process . env . VUE_APP_CLI_UI_URL
17
17
if ( typeof endpoint === 'undefined' ) {
18
- endpoint = ' ws://localhost:4000 /graphql'
18
+ endpoint = ` ws://localhost:${ process . env . VUE_APP_GRAPHQL_PORT } /graphql`
19
19
} else if ( endpoint === '' ) {
20
20
endpoint = window . location . origin . replace ( 'http' , 'ws' ) + '/graphql'
21
21
}
You can’t perform that action at this time.
0 commit comments