Daniel-Pablo's avatar

trying to auto update page with mix.browserSync and spatie

Hi there, I love to work with mix.browserSync because my browser can update the page every time I change something on the code of the dev app, BUT I am having a hard time trying to use the http://localhost:3000/ with spatie,

Everything works great but when I want to upload images with spatie media library the upload bar still updating the information forever , this happens when I am in http://localhost:3000/

If I want to upload the images I have to go to http://localhost:8000/ and here the page works great but do not auto-refresh on the moment I change the code because the mix browser sync got this code to work

if (!useChat) {

   mix.browserSync({
        proxy: 'http://localhost:3000',
        notify: false
    });

hope make sense, What I want to achieve is autoload page on code change AND also if I want to upload the images with this spatie plugin it can be done in http://localhost:3000/ this way I don't have to write every time the route because I am in dev right now and its time consuming doing that change form 3000 to 8000 on and on

thanks a lot for taking the time for reading my post

0 likes
1 reply
Daniel-Pablo's avatar

some one have develop this way with bowersync and spatie media library? thanks in advance

Please or to participate in this conversation.