Sha256: e7af6de8d0fc30a616e6b1baec145bad05149259608d45519307991bf0db0a5e

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require "hanami"

<% namespace do %>
  # The application base configuration.
  class App < Hanami::App
    RubyVM::YJIT.enable
    Dry::Schema.load_extensions :monads
    Dry::Validation.load_extensions :monads

    config.actions.content_security_policy.then do |csp|
      csp[:manifest_src] = "'self'"
      csp[:script_src] += " 'unsafe-eval' 'unsafe-inline' https://unpkg.com/"
    end

    environment :development do
      # :nocov:
      config.logger.options[:colorize] = true

      config.logger = config.logger.instance.add_backend(
        colorize: false,
        stream: Hanami.app.root.join("log/development.log")
      )
    end
  end
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanamismith-0.50.0 lib/hanamismith/templates/%project_name%/config/app.rb.erb