mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:36:11 +08:00

When running a development environment behind a proxy (e.g. when using a cloud development environment, or a service like ngrok), the ember-cli port & protocol may not match the one in the browser. `livereload.js` knows how to auto-configure itself based on the current browser environment... but Ember CLI overrides that autoconfiguration with some hard-coded values. The intention there is to allow running the livereload server on a different port to the ember-cli web proxy. We don't need that functionality. This commit stops loading `ember-cli-live-reload.js`, and instead loads `_lr/livereload.js` directly.