Skip to content

Commit

Permalink
fix: logic in determining if the environment is in production
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Sep 20, 2023
1 parent fcb2422 commit 4635a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Landing/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const getSurgeHost = (): {
hostname: string
port: string
} => {
if (process.env.NODE_ENV !== 'production') {
if (process.env.NODE_ENV === 'production') {
const protocol = window.location.protocol
const port = window.location.port
? window.location.port
Expand Down

0 comments on commit 4635a48

Please sign in to comment.