Don't require BS_HOST to be configured

This commit is contained in:
Kevin MacMartin 2022-03-23 13:55:18 -04:00
parent d41f57fd1c
commit da90024a63
2 changed files with 1 additions and 3 deletions

View file

@ -10,8 +10,6 @@ APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
BS_HOST=localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306

View file

@ -50,7 +50,7 @@
@if(Config::get('app.debug') && Config::get('app.env') === 'local')
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='http://{{ env('BS_HOST', 'localhost') }}:3000/browser-sync/browser-sync-client.js?version={{ Version::get() }}'><\/script>".replace("HOST", location.hostname));
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?version={{ Version::get() }}'><\/script>".replace("HOST", location.hostname));
//]]></script>
@endif
</body>