Skip to content

Commit

Permalink
fix: boolean env vars (#2532)
Browse files Browse the repository at this point in the history
* fix: boolean env vars

* fix: remove fallback
  • Loading branch information
iamacook authored Sep 25, 2023
1 parent 8256390 commit 89bcb82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chains from './chains'

export const IS_PRODUCTION = !!process.env.NEXT_PUBLIC_IS_PRODUCTION
export const IS_PRODUCTION = process.env.NEXT_PUBLIC_IS_PRODUCTION === 'true'
export const IS_DEV = process.env.NODE_ENV === 'development'

export const GATEWAY_URL_PRODUCTION =
Expand Down Expand Up @@ -91,7 +91,7 @@ export const DISCORD_URL = 'https://chat.safe.global'
export const TWITTER_URL = 'https://twitter.com/safe'

// Legal
export const IS_OFFICIAL_HOST = process.env.NEXT_PUBLIC_IS_OFFICIAL_HOST || false
export const IS_OFFICIAL_HOST = process.env.NEXT_PUBLIC_IS_OFFICIAL_HOST === 'true'

// Risk mitigation (Redefine)
export const REDEFINE_SIMULATION_URL = 'https://dashboard.redefine.net/reports/'
Expand Down

0 comments on commit 89bcb82

Please sign in to comment.