Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Chore: update staging CGW host #4083

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const LS_SEPARATOR = '__'
export const LS_USE_PROD_CGW = 'useProdGateway'

// For debugging on dev
export const isProdGateway = () => {
export const isProdGateway = (): boolean => {
try {
return localStorage.getItem(`${LS_NAMESPACE}${LS_SEPARATOR}${LS_USE_PROD_CGW}`) === 'true'
} catch (e) {
Expand All @@ -56,7 +56,7 @@ export const isProdGateway = () => {

export const GATEWAY_URL =
process.env.REACT_APP_GATEWAY_URL ||
(IS_PRODUCTION || isProdGateway() ? 'https://safe-client.gnosis.io' : 'https://safe-client.staging.gnosisdev.com')
(IS_PRODUCTION || isProdGateway() ? 'https://safe-client.gnosis.io' : 'https://safe-client.staging.5afe.dev')

// Safe Token
export const SAFE_TOKEN_ADDRESSES: { [chainId: string]: string } = {
Expand Down