fix baffle_host
This commit is contained in:
@@ -13,7 +13,8 @@ class Dsn < ApplicationRecord
|
||||
def full_dsn_url
|
||||
# Generate a complete DSN URL like Sentry does
|
||||
# Format: https://{key}@{domain}/api/events
|
||||
domain = Rails.application.config.action_mailer.default_url_options[:host] ||
|
||||
domain = ENV['BAFFLE_HOST'] ||
|
||||
Rails.application.config.action_mailer.default_url_options[:host] ||
|
||||
ENV['RAILS_HOST'] ||
|
||||
'localhost:3000'
|
||||
|
||||
@@ -23,7 +24,8 @@ class Dsn < ApplicationRecord
|
||||
|
||||
def api_endpoint_url
|
||||
# Just the API endpoint URL (without key)
|
||||
domain = Rails.application.config.action_mailer.default_url_options[:host] ||
|
||||
domain = ENV['BAFFLE_HOST'] ||
|
||||
Rails.application.config.action_mailer.default_url_options[:host] ||
|
||||
ENV['RAILS_HOST'] ||
|
||||
'localhost:3000'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user