We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aef1f18 commit 807014aCopy full SHA for 807014a
1 file changed
apps/sim/lib/environment.ts
@@ -1,7 +1,7 @@
1
/**
2
* Environment utility functions for consistent environment detection across the application
3
*/
4
-import { env, isTruthy } from './env'
+import { env, getEnv, isTruthy } from './env'
5
6
7
* Is the application running in production mode
@@ -21,9 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
21
22
* Is this the hosted version of the application
23
24
-export const isHosted = true
25
-// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26
-// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
+export const isHosted =
+ getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
+ getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
27
28
29
* Is billing enforcement enabled
0 commit comments