# This ENV var is only populated for the integration deployment environment.
if ENV.has_key?("BASIC_AUTH_CREDENTIALS")
  LinksChecker.authed_domains = { "www.#{ENV['GOVUK_APP_DOMAIN']}" => ENV.fetch["BASIC_AUTH_CREDENTIALS"] }
end

Configure basic auth for LinkChecker from ENV
Configure basic auth for LinkChecker from ENV

This is only necessary for integration environment.
