Method: ViteRuby::Config#to_env
- Defined in:
- lib/vite_ruby/config.rb
#to_env(env_vars = ViteRuby.env) ⇒ Object
Public: Sets additional environment variables for vite-plugin-ruby.
63 64 65 66 67 68 69 |
# File 'lib/vite_ruby/config.rb', line 63 def to_env(env_vars = ViteRuby.env) CONFIGURABLE_WITH_ENV.each_with_object({}) do |option, env| unless (value = @config[option]).nil? env["#{ViteRuby::ENV_PREFIX}_#{option.upcase}"] = value.to_s end end.merge(env_vars) end |