Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: feature flags
  • Loading branch information
emir-karabeg committed Mar 17, 2026
commit 9ca0ab22460bd4863c1e7ea4e9ff9493e261e4b8
8 changes: 5 additions & 3 deletions apps/sim/lib/core/config/feature-flags.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Environment utility functions for consistent environment detection across the application
*/
import { env, isFalsy, isTruthy } from './env'
import { env, getEnv, isFalsy, isTruthy } from './env'

/**
* Is the application running in production mode
*/
export const isProd = true
export const isProd = env.NODE_ENV === 'production'

/**
* Is the application running in development mode
Expand All @@ -21,7 +21,9 @@ export const isTest = env.NODE_ENV === 'test'
/**
* Is this the hosted version of the application
*/
export const isHosted = true
export const isHosted =
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'

/**
* Is billing enforcement enabled
Expand Down
Loading