# Shown below are the defaults for configuration ReactOnRails.configure do |config| # Client bundles are configured in application.js # Server rendering: # Server bundle is a single file for all server rendering of components. # It is important to set this to "" if you are not doing server rendering to avoid an extraneous log warning # that the default file of server-bundle.js does not exist. config.server_bundle_js_file = "app/assets/javascripts/generated/server-bundle.js" # This is the default # increase if you're on JRuby config.server_renderer_pool_size = 1 # seconds config.server_renderer_timeout = 20 # If set to true, this forces Rails to reload the server bundle if it is modified config.reload_server_js_every_request = Rails.env.development? # For server rendering. This can be set to false so that server side messages are discarded. # Default is true. Be cautious about turning this off. config.replay_console = true # Default is true. Logs server rendering messags to Rails.logger.info config.logging_on_server = true # The following options can be overriden by passing to the helper method: # Default is false config.prerender = false # Default is false, meaning that you expose ReactComponents directly config.generator_function = false # Default is true for development, off otherwise config.trace = Rails.env.development? end