main
 1# frozen_string_literal: true
 2
 3Rails.application.configure do
 4  # Settings specified here will take precedence over those in
 5  # config/application.rb
 6  config.webpacker.check_yarn_integrity = true
 7
 8  # In the development environment your application's code is reloaded on
 9  # every request. This slows down response time but is perfect for development
10  # since you don't have to restart the web server when you make code changes.
11  config.cache_classes = false
12
13  # Do not eager load code on boot.
14  config.eager_load = false
15
16  # Show full error reports.
17  config.consider_all_requests_local = true
18
19  # Enable/disable caching. By default caching is disabled.
20  # Run rails dev:cache to toggle caching.
21  if Rails.root.join('tmp', 'caching-dev.txt').exist?
22    config.action_controller.perform_caching = true
23
24    config.cache_store = :memory_store
25    config.public_file_server.headers = {
26      'Cache-Control' => "public, max-age=#{2.days.to_i}"
27    }
28  else
29    config.action_controller.perform_caching = false
30
31    config.cache_store = :null_store
32  end
33
34  # Store uploaded files on the local file system
35  # (see config/storage.yml for options)
36  # config.active_storage.service = :local
37
38  # Don't care if the mailer can't send.
39  config.action_mailer.raise_delivery_errors = false
40
41  config.action_mailer.perform_caching = false
42
43  # Print deprecation notices to the Rails logger.
44  config.active_support.deprecation = :log
45
46  # Raise an error on page load if there are pending migrations.
47  config.active_record.migration_error = :page_load
48
49  # Highlight code that triggered database queries in logs.
50  config.active_record.verbose_query_logs = true
51
52  # Debug mode disables concatenation and preprocessing of assets.
53  # This option may cause significant delays in view rendering with a large
54  # number of complex assets.
55  # config.assets.debug = true
56
57  # Suppress logger output for asset requests.
58  # config.assets.quiet = true
59
60  # Raises error for missing translations
61  # config.action_view.raise_on_missing_translations = true
62
63  # Use an evented file watcher to asynchronously detect changes in source code,
64  # routes, locales, etc. This feature depends on the listen gem.
65  config.file_watcher = ActiveSupport::EventedFileUpdateChecker
66
67  config.hosts << /.*\.ngrok\.io/
68end