Skip to content

Commit

Permalink
Only set the FULL_HOST in non-test envs (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmartt authored Apr 11, 2024
1 parent af3ad91 commit 0feb854
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
OmniAuth.config.logger = Rails.logger

OmniAuth.config.full_host = lambda do |env|
Rails.configuration.pub_secrets[:creators_full_host]
if !Rails.env.test?
OmniAuth.config.full_host = lambda do |env|
Rails.configuration.pub_secrets[:creators_full_host]
end
end

0 comments on commit 0feb854

Please sign in to comment.