module.exports = require('./' + (process.env.FINDIFY_ENV || 'staging'));

var findifyEnv = typeof process !== 'undefined' && process.env && process.env.FINDIFY_ENV;

module.exports = require('./' + (findifyEnv || 'production'));

Add checking on process variable existance. Change default env to production