Skip to content

Commit 9fef0c0

Browse files
committed
feat: allow render hostname
1 parent 4a546c3 commit 9fef0c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/environments/production.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
config.consider_all_requests_local = false
1111

12+
# Allow Render hostname
13+
config.hosts << ENV['RENDER_EXTERNAL_HOSTNAME'] if ENV['RENDER_EXTERNAL_HOSTNAME'].present?
14+
1215
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
1316

1417
config.active_storage.variant_processor = :mini_magick

0 commit comments

Comments
 (0)