OhMyDitzzy commited on
Commit
5468e5f
·
1 Parent(s): 676413d

fix: domain

Browse files
Files changed (1) hide show
  1. src/lib/api-url.ts +1 -1
src/lib/api-url.ts CHANGED
@@ -8,7 +8,7 @@ export function getBaseUrl(): string {
8
  }
9
 
10
  return process.env.NODE_ENV === 'production'
11
- ? process.env.DOMAIN_URL || `${window.location.protocol}//${window.location.host}`
12
  : 'http://localhost:5000';
13
  }
14
 
 
8
  }
9
 
10
  return process.env.NODE_ENV === 'production'
11
+ ? !process.env.DOMAIN_URL ? process.env.DOMAIN_URL : `${window.location.protocol}//${window.location.host}`
12
  : 'http://localhost:5000';
13
  }
14