Sha256: 1d4248351b05b88e18c9500bdacc488b989c26a04ff3715274807b5151b40f70

Contents?: true

Size: 379 Bytes

Versions: 24

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

module ViteRails::Config
  # Override: Default values for a Rails application.
  def config_defaults
    require 'rails'
    super(
      asset_host: Rails.application&.config&.action_controller&.asset_host,
      mode: Rails.env.to_s,
      root: Rails.root || Dir.pwd,
    )
  end
end

ViteRuby::Config.singleton_class.prepend(ViteRails::Config)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
vite_rails-3.0.7 lib/vite_rails/config.rb
vite_rails-3.0.6 lib/vite_rails/config.rb
vite_rails-4.0.0.alpha1 lib/vite_rails/config.rb
vite_rails-3.0.5 lib/vite_rails/config.rb
vite_rails-3.0.4 lib/vite_rails/config.rb
vite_rails-3.0.3 lib/vite_rails/config.rb
vite_rails-3.0.2 lib/vite_rails/config.rb
vite_rails-3.0.1 lib/vite_rails/config.rb
vite_rails-3.0.0 lib/vite_rails/config.rb
vite_rails-3.0.0.beta.2 lib/vite_rails/config.rb
vite_rails-3.0.0.beta.1 lib/vite_rails/config.rb
vite_rails-2.0.13 lib/vite_rails/config.rb
vite_rails-2.0.12 lib/vite_rails/config.rb
vite_rails-2.0.11 lib/vite_rails/config.rb
vite_rails-2.0.10 lib/vite_rails/config.rb
vite_rails-2.0.9 lib/vite_rails/config.rb
vite_rails-2.0.8 lib/vite_rails/config.rb
vite_rails-2.0.7 lib/vite_rails/config.rb
vite_rails-2.0.6 lib/vite_rails/config.rb
vite_rails-2.0.5 lib/vite_rails/config.rb