Update rubocop to version 1.76.0 (#34926)
This commit is contained in:
		@@ -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' : ''}://#{web_host}"
 | 
			
		||||
      "ws#{'s' if https}://#{web_host}"
 | 
			
		||||
    else
 | 
			
		||||
      "ws://#{host.split(':').first}:4000"
 | 
			
		||||
    end
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ Rails.application.config.content_security_policy do |p|
 | 
			
		||||
 | 
			
		||||
  if Rails.env.development?
 | 
			
		||||
    vite_public_host = ENV.fetch('VITE_DEV_SERVER_PUBLIC', "localhost:#{ViteRuby.config.port}")
 | 
			
		||||
    front_end_build_urls = %w(ws http).map { |protocol| "#{protocol}#{ViteRuby.config.https ? 's' : ''}://#{vite_public_host}" }
 | 
			
		||||
    front_end_build_urls = %w(ws http).map { |protocol| "#{protocol}#{'s' if ViteRuby.config.https}://#{vite_public_host}" }
 | 
			
		||||
 | 
			
		||||
    p.connect_src :self, :data, :blob, *media_hosts, Rails.configuration.x.streaming_api_base_url, *front_end_build_urls
 | 
			
		||||
    p.script_src  :self, :unsafe_inline, :unsafe_eval, assets_host
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user