Skip to content

Commit 28261dd

Browse files
committed
update env variable name
1 parent d8f7427 commit 28261dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/client/src/common/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const getServedBy = () => {
99
export const getUrl = () => {
1010
const portWithColon = window.location.port ? `:${window.location.port}` : ''
1111
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}`
1313
: `${window.location.protocol}//${window.location.hostname}${portWithColon}`
1414
}
1515

@@ -20,7 +20,7 @@ export const getPublicWatchUrl = () => {
2020
}
2121
const portWithColon = window.location.port ? `:${window.location.port}` : ''
2222
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/`
2424
: `${window.location.protocol}//${window.location.hostname}${portWithColon}/w/`
2525
}
2626

0 commit comments

Comments
 (0)