Skip to content

Commit

Permalink
utils: dont bail if env not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
arthyn committed Oct 23, 2023
1 parent 7f72743 commit 1f92ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/logic/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ 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') ||
(import.meta.env.VITE_SHIP_URL || '').endsWith('.test.tlon.systems') ||
window.location.hostname.endsWith('.test.tlon.systems');
export const isHosted =
isStagingHosted ||
import.meta.env.VITE_SHIP_URL.endsWith('.tlon.network') ||
(import.meta.env.VITE_SHIP_URL || '').endsWith('.tlon.network') ||
window.location.hostname.endsWith('.tlon.network');

export const hostingUploadURL = isStagingHosted
Expand Down

0 comments on commit 1f92ca9

Please sign in to comment.