class ViteRuby

def run_proxy?

Public: The proxy for assets should only run in development mode.
def run_proxy?
  config.mode == 'development' || (config.mode == 'test' && !ENV['CI'])
rescue StandardError => error
  logger.error("Failed to check mode for Vite: #{ error.message }")
  false
end