A platform for community discussion. Free, open, simple.
DEV: Simplify livereload configuration for better proxy compatibility (#29742)
David Taylor8d53f8ef1a27
diff --git a/app/assets/javascripts/custom-proxy/index.js b/app/assets/javascripts/custom-proxy/index.jsindex cd53472441d..6a62acf8aa7 100644--- a/app/assets/javascripts/custom-proxy/index.js+++ b/app/assets/javascripts/custom-proxy/index.js@@ -95,8 +95,10 @@ function updateScriptReferences({);}+ // We use _lr/livereload.js directly instead of ember-cli-live-reload so that the protocol/port is configured automatically+ // (important for cloud development environments like GitHub CodeSpaces)newElements.unshift(- `<script async src="${baseURL}ember-cli-live-reload.js" nonce="${nonce}"></script>`+ `<script async src="/_lr/livereload.js?path=_lr/livereload" nonce="${nonce}"></script>`);}