File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11/**
22 * Environment utility functions for consistent environment detection across the application
33 */
4- import { env , isFalsy , isTruthy } from './env'
4+ import { env , getEnv , isFalsy , isTruthy } from './env'
55
66/**
77 * Is the application running in production mode
88 */
9- export const isProd = true
9+ export const isProd = env . NODE_ENV === 'production'
1010
1111/**
1212 * Is the application running in development mode
@@ -21,7 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
2121/**
2222 * Is this the hosted version of the application
2323 */
24- export const isHosted = true
24+ export const isHosted =
25+ getEnv ( 'NEXT_PUBLIC_APP_URL' ) === 'https://www.sim.ai' ||
26+ getEnv ( 'NEXT_PUBLIC_APP_URL' ) === 'https://www.staging.sim.ai'
2527
2628/**
2729 * Is billing enforcement enabled
You can’t perform that action at this time.
0 commit comments