Only use BrowserSync when both the APP_ENV=local and APP_DEBUG=true

This commit is contained in:
Kevin MacMartin 2018-04-25 21:17:58 -04:00
parent 1c90c0b214
commit f1ce1e0a8a

View file

@ -48,7 +48,7 @@
</div>
</div>
@if(Config::get('app.debug'))
@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={{ env('CACHE_BUST') }}'><\/script>".replace("HOST", location.hostname));
//]]></script>