Sha256: ec922b9638747144678851a886a39d41d8f22318433ba4d536d6eed296c899de

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

module ViteRailsLegacy::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(ViteRailsLegacy::Config)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vite_rails_legacy-2.0.11 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.10 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.9 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.8 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.7 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.6 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.5 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.4 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.3 lib/vite_rails_legacy/config.rb
vite_rails_legacy-2.0.2 lib/vite_rails_legacy/config.rb