Sha256: 9733f30c9ce9ee28693bff6a4c9f3b56d8204215633e3efd81cdd9da6b3fe268

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

# 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.
  config.server_bundle_js_file = "app/assets/javascripts/generated/server-bundle.js"
  # 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.development_mode = 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 true for development, off otherwise
  config.trace = Rails.env.development?
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
react_on_rails-2.0.2 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.1 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0.rc.4 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0.rc.3 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0.rc.1 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0.beta.3 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb
react_on_rails-2.0.0.beta.2 lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb