ImpSdk.util.getEnv

developed by Murali Balusa

ImpSdk.util.getEnv will detect the IMP environment and send the json response.

The following are the imp environments.

'localhost': 'local',
'social-stage.fds.com': 'stage',
'social-stage.herokuapp.com': 'stage',
'social-preprod.fds.com': 'preprod',
'social-preprod.herokuapp.com': 'preprod',
'qa(\d+)codemacys.fds.com': 'preprod',
'mcomexternal(\d+).fds.com': 'preprod',
'mcominternal(\d+).fds.com': 'preprod',
'social.macys.com': 'prod',

ImpSdk.util.getEnv();

Sample responses:

Response 1:
{
  'env' : 'prod'
}

Response 2:
{
  'env' : 'preprod'
}

Response 3:
{
  'env' : 'stage'
}

Response 4:
{
  'env' : 'local'
}