class ViteRuby::DevServerProxy
def rewrite_uri_for_vite(env)
def rewrite_uri_for_vite(env) uri = env.fetch('REQUEST_URI') { [env['PATH_INFO'], env['QUERY_STRING']].reject { |str| str.to_s.strip.empty? }.join('?') } env['PATH_INFO'], env['QUERY_STRING'] = (env['REQUEST_URI'] = normalize_uri(uri)).split('?') end