|
|
@ -21,7 +21,7 @@ Rails.application.configure do |
|
|
|
|
|
|
|
config.x.streaming_api_base_url = ENV.fetch('STREAMING_API_BASE_URL') do |
|
|
|
if Rails.env.production? |
|
|
|
"ws#{https ? 's' : ''}://ws-#{web_host}" |
|
|
|
"ws#{https ? 's' : ''}://#{web_host}" |
|
|
|
else |
|
|
|
"ws://#{ENV['REMOTE_DEV'] == 'true' ? host.split(':').first : 'localhost'}:4000" |
|
|
|
end |
|
|
|