Skip to content

isProductionEnvironment()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / isProductionEnvironment

isProductionEnvironment(): boolean

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:23094

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')
}