From 4635a48bcb8e619b89901f1937fbeea4755976ef Mon Sep 17 00:00:00 2001 From: Roy Li Date: Wed, 20 Sep 2023 11:13:40 +0200 Subject: [PATCH] fix: logic in determining if the environment is in production --- src/pages/Landing/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Landing/utils.ts b/src/pages/Landing/utils.ts index 6684dd6..81bdf57 100644 --- a/src/pages/Landing/utils.ts +++ b/src/pages/Landing/utils.ts @@ -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