# Overwritten at deploy-time
require 'airbrake'

Airbrake.configure do |config|
end

require 'airbrake'

Airbrake.configure do |config|
  config.api_key = ENV['ERRBIT_API_KEY']
  config.host = "errbit.#{ENV['GOVUK_APP_DOMAIN']}"
  config.secure = true
  config.environment_name = ENV['ERRBIT_ENVIRONMENT_NAME']
end

Read Airbrake config from environment
Read Airbrake config from environment

For the time being this file will still be overwritten at deploy
time, but once we remove that functionality from govuk-app-deployment
this new file will start to be used.
