Skip to content

Commit

Permalink
build: updated production config
Browse files Browse the repository at this point in the history
set `config.cache_classes=false` to allow Spring to reload assets
set `ENV['API_SERVICE_URL']` to `ENV.fetch('API_SERVICE_URL', nil)` as Rubocop continued to complain
  • Loading branch information
jonrandahl committed Apr 25, 2024
1 parent 0338246 commit 9cca65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
config.cache_classes = true
config.cache_classes = false

# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
Expand Down Expand Up @@ -91,7 +91,7 @@
config.relative_url_root = ENV.fetch('RAILS_RELATIVE_URL_ROOT', '/app/ukhpi')

# API location is specified in the environment variable API_SERVICE_URL
config.api_service_url = ENV['API_SERVICE_URL']
config.api_service_url = ENV.fetch('API_SERVICE_URL', nil)

# feature flag for showing the Welsh language switch affordance
config.welsh_language_enabled = true
Expand Down

0 comments on commit 9cca65d

Please sign in to comment.