Skip to content

Commit c4aee11

Browse files
authored
Add env variable to bypass host setup (#6254)
1 parent c38d2cb commit c4aee11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
# Only use :id for inspections in production.
174174
config.active_record.attributes_for_inspect = [:id]
175175

176-
if ENV['URL_HOST'].present?
176+
if ENV.fetch('BYPASS_HOST', 'false') != 'true' && ENV['URL_HOST'].present?
177177
config.hosts = ENV.fetch('URL_HOST')
178178
config.host_authorization = { exclude: ->(request) { request.path == '/health_check' } }
179179
end

0 commit comments

Comments
 (0)