File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const getServedBy = () => {
9
9
export const getUrl = ( ) => {
10
10
const portWithColon = window . location . port ? `:${ window . location . port } ` : ''
11
11
return ( window . location . hostname . indexOf ( 'localhost' ) >= 0 && window . location . port !== '' )
12
- ? `http://localhost:${ process . env . REACT_APP_PORT || window . location . port } `
12
+ ? `http://localhost:${ process . env . REACT_APP_SERVER_PORT || window . location . port } `
13
13
: `${ window . location . protocol } //${ window . location . hostname } ${ portWithColon } `
14
14
}
15
15
@@ -20,7 +20,7 @@ export const getPublicWatchUrl = () => {
20
20
}
21
21
const portWithColon = window . location . port ? `:${ window . location . port } ` : ''
22
22
return ( window . location . hostname . indexOf ( 'localhost' ) >= 0 && window . location . port !== '' )
23
- ? `http://localhost:${ process . env . REACT_APP_PORT || window . location . port } /#/w/`
23
+ ? `http://localhost:${ process . env . REACT_APP_SERVER_PORT || window . location . port } /#/w/`
24
24
: `${ window . location . protocol } //${ window . location . hostname } ${ portWithColon } /w/`
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments