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 27bff32 commit 9d018baCopy full SHA for 9d018ba
apps/sim/lib/core/config/feature-flags.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,7 +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
+export const isHosted =
25
+ getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
26
+ getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
27
28
29
* Is billing enforcement enabled
0 commit comments