diff --git a/ui/src/logic/utils.ts b/ui/src/logic/utils.ts index 459eeee4..561ad514 100644 --- a/ui/src/logic/utils.ts +++ b/ui/src/logic/utils.ts @@ -16,14 +16,13 @@ import { useCallback, useState } from 'react'; export const useMockData = import.meta.env.MODE === 'mock'; export const isStagingHosted = - import.meta.env.DEV && - (import.meta.env.VITE_SHIP_URL.endsWith('.test.tlon.systems') || - window.location.hostname.endsWith('.test.tlon.systems')); + import.meta.env.DEV || + import.meta.env.VITE_SHIP_URL.endsWith('.test.tlon.systems') || + window.location.hostname.endsWith('.test.tlon.systems'); export const isHosted = isStagingHosted || - (import.meta.env.DEV && - (import.meta.env.VITE_SHIP_URL.endsWith('.tlon.network') || - window.location.hostname.endsWith('.tlon.network'))); + import.meta.env.VITE_SHIP_URL.endsWith('.tlon.network') || + window.location.hostname.endsWith('.tlon.network'); export const hostingUploadURL = isStagingHosted ? 'https://memex.test.tlon.systems'