window.__vite_plugin_hmrOptions = { protocol: location.protocol === 'https:' ? 'wss' : 'ws', host: location.hostname, port: location.port || (location.protocol === 'https:' ? 443 : 80), };