From 35ecec7f4731b602c463a1a5bbdbf76b6e78f869 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Wed, 28 Dec 2022 21:04:40 +0000 Subject: [PATCH] Remove ASSET_HOST env var This env var is no longer in active use since the introduction of Static proxy [1] and usage of it will soon have problems with the Content Security Policy [2]. [1]: https://github.com/alphagov/govuk_app_config/blob/7f060692720df50a27f6845f052b04eae2246226/lib/govuk_app_config/govuk_proxy/static_proxy.rb [2]: https://github.com/alphagov/govuk_app_config/pull/274 --- config/application.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/application.rb b/config/application.rb index 45c2dcaf4..03c156ced 100644 --- a/config/application.rb +++ b/config/application.rb @@ -125,10 +125,6 @@ class Application < Rails::Application # https://github.com/alphagov/govuk-frontend/issues/1350 config.assets.css_compressor = nil - # allow overriding the asset host with an enironment variable, useful for - # when router is proxying to this app but asset proxying isn't set up. - config.asset_host = ENV["ASSET_HOST"] - # Do not swallow errors in after_commit/after_rollback callbacks. # config.active_record.raise_in_transactional_callbacks = true end