Skip to content

Commit 0b47132

Browse files
committed
fix: reset feature flags to dynamic values
1 parent de831c8 commit 0b47132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/core/config/feature-flags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { env, getEnv, isFalsy, isTruthy } from './env'
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
@@ -29,7 +29,7 @@ try {
2929
} catch {
3030
// invalid URL — isHosted stays false
3131
}
32-
export const isHosted = true
32+
export const isHosted = appHostname === 'sim.ai' || appHostname.endsWith('.sim.ai')
3333

3434
/**
3535
* Is billing enforcement enabled

0 commit comments

Comments
 (0)