Skip to content

isProductionEnvironment()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / isProductionEnvironment

isProductionEnvironment(): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:22758

Check if running in a production environment

Production is detected when:

  • NODE_ENV === ‘production’
  • SIP_ENV === ‘production’

boolean

true if production environment detected

if (isProductionEnvironment()) {
console.log('Running in production mode')
}