diff options
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r-- | config/environments/test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index 2c6ab3bbc79..9fa8a1b762c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -23,6 +23,9 @@ Rails.application.configure do # Configure static asset server for tests with Cache-Control for performance config.assets.compile = false if ENV['CI'] + # There is no need to check if assets are precompiled locally + # To debug AssetNotPrecompiled errors locally, set CHECK_PRECOMPILED_ASSETS to true + config.assets.check_precompiled_asset = Gitlab::Utils.to_boolean(ENV['CHECK_PRECOMPILED_ASSETS'], default: false) config.public_file_server.enabled = true config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } |