Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.rb.

  # Code is not reloaded between requests.
  config.cache_classes = true

  # Eager load code on boot. This eager loads most of Rails and
  # your application in memory, allowing both threaded web servers
  # and those relying on copy on write to perform better.
  # Rake tasks automatically ignore this option for performance.
  config.eager_load = true

  # Full error reports are disabled and caching is turned on.
  config.consider_all_requests_local       = false
  config.action_controller.perform_caching = false

  # Compress JavaScripts and CSS.
  config.assets.js_compressor = :terser

  # Do not fallback to assets pipeline if a precompiled asset is missed.
  config.assets.compile = true

  # Asset digests allow you to set far-future HTTP expiration dates on all assets,
  # yet still be able to expire them through the digest params.
  config.assets.debug = false
  config.assets.digest = true

  config.action_mailer.delivery_method = :file
  config.action_mailer.default_url_options = { host: "localhost", port: 3000, protocol: "https" }
  config.action_mailer.default_options = { from: "test@pfda" }

  # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
  # the I18n.default_locale when a translation cannot be found).
  config.i18n.fallbacks = true

  # Print deprecation notices to the stderr.
  config.active_support.deprecation = :stderr

  # Do not dump schema after migrations.
  config.active_record.dump_schema_after_migration = false

  config.active_record.migration_error = :page_load

  # SSL
  config.force_ssl = true
end
