We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f966ed commit 0a35b4aCopy full SHA for 0a35b4a
client/src/config.ts
@@ -1,11 +1,10 @@
1
-export const ENV =
2
- window.location.hostname === 'todo: change to prod domain'
+export const ENV = window.location.hostname.includes('stage.')
+ ? 'stage'
3
+ : window.location.hostname === 'todo: change to prod domain'
4
? 'prod'
- : window.location.hostname.includes('todo: change to non prod matcher')
5
- ? 'stage'
6
- : window.location.port === '4173'
7
- ? 'test'
8
- : 'dev';
+ : window.location.port === '4173'
+ ? 'test'
+ : 'dev';
9
10
export const getServerUrl = () => {
11
switch (ENV) {
0 commit comments