about summary refs log tree commit diff
path: root/src/env.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.ts')
-rw-r--r--src/env.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/env.ts b/src/env.ts
index 78fb88acc..47bceac77 100644
--- a/src/env.ts
+++ b/src/env.ts
@@ -1,5 +1,7 @@
-if (typeof process.env.REACT_APP_AUTH_LOBBY !== 'string') {
+import {REACT_APP_AUTH_LOBBY} from '@env'
+
+if (typeof REACT_APP_AUTH_LOBBY !== 'string') {
   throw new Error('ENV: No auth lobby provided')
 }
 
-export const AUTH_LOBBY = process.env.REACT_APP_AUTH_LOBBY
+export const AUTH_LOBBY = REACT_APP_AUTH_LOBBY