Skip to content

Commit

Permalink
update env variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneIsrael committed Nov 27, 2023
1 parent d8f7427 commit 28261dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/client/src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getServedBy = () => {
export const getUrl = () => {
const portWithColon = window.location.port ? `:${window.location.port}` : ''
return (window.location.hostname.indexOf('localhost') >= 0 && window.location.port !== '')
? `http://localhost:${process.env.REACT_APP_PORT || window.location.port}`
? `http://localhost:${process.env.REACT_APP_SERVER_PORT || window.location.port}`
: `${window.location.protocol}//${window.location.hostname}${portWithColon}`
}

Expand All @@ -20,7 +20,7 @@ export const getPublicWatchUrl = () => {
}
const portWithColon = window.location.port ? `:${window.location.port}` : ''
return (window.location.hostname.indexOf('localhost') >= 0 && window.location.port !== '')
? `http://localhost:${process.env.REACT_APP_PORT || window.location.port}/#/w/`
? `http://localhost:${process.env.REACT_APP_SERVER_PORT || window.location.port}/#/w/`
: `${window.location.protocol}//${window.location.hostname}${portWithColon}/w/`
}

Expand Down

0 comments on commit 28261dd

Please sign in to comment.