
import env from '../env'

if (env.name === 'development') {
  require('bluebird').config({
    longStackTraces: true
  })
} else {
  require('bluebird').config({
    longStackTraces: false
  })
}


require('bluebird').config({
  longStackTraces: true
})

Use bluebird longStackTraces in production too. Debugging power is worth the (barely noticeable?) performance hit