class ViteRuby::Config

def coerce_values(config)

as environment variables which are always strings.
Internal: Coerces all the configuration values, in case they were passed
def coerce_values(config)
  config['mode'] = config['mode'].to_s
  config['port'] = config['port'].to_i
  config['root'] = Pathname.new(config['root'])
  config['build_cache_dir'] = config['root'].join(config['build_cache_dir'])
  config['ssr_output_dir'] = config['root'].join(config['ssr_output_dir'])
  coerce_booleans(config, 'auto_build', 'hide_build_console_output', 'https', 'skip_compatibility_check', 'skip_proxy')
end