How a meteor application knows if it's running on development, test or production environment?

deployment, meteor

Solution

Since Meteor 1.3 these flags work out of the box:

Meteor.isDevelopment
Meteor.isProduction
Meteor.isTest
Meteor.isAppTest

Problem

I need to use different accounts provider's configurations when the meteor application runs as Development, Test or Production environment.

Original source