We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f728d2 commit d41f1f2Copy full SHA for d41f1f2
src/Exceptionless.Web/ClientApp/vite.config.ts
@@ -91,7 +91,11 @@ function getAspNetConfig() {
91
}
92
93
const wsUrl = url.replace('https://', 'wss://').replace('http://', 'ws://');
94
- const hmrRemoteProtocol = codespaceName ? 'wss' : wsUrl.startsWith('wss') ? 'wss' : 'ws';
+
95
+ let hmrRemoteProtocol = 'ws';
96
+ if (codespaceName || (wsUrl.startsWith('wss') && hmrRemoteHost !== 'localhost')) {
97
+ hmrRemoteProtocol = 'wss';
98
+ }
99
100
return {
101
hmr: {
0 commit comments