Back to Zenii Support

Responsive
Responsive

Hi there,

When I run npm run watch I get a privacy error. The page is trying to load https://localhost:3000/. I have updated the browserSync url in webpack.mix.js, proxy: 'https://octobertw.app:96/'. I use Laravel Valet for my local environment if that makes any difference.

Any thoughts?

Cheers,

Cy

The Bakerdev
The Bakerdev

Hi,

I'm not familiar with Laravel Valet, but this has something to do with browserSync and Valet. Here's a thread similar to your scenario. Hope it helps.

Regards

Responsive
Responsive

Hi guys, thanks for the tip!

Here is a solution that worked for me, when using Valet (secured). Be sure to replace domain.app and homedir with your own.

    .browserSync({
    proxy: 'https://domain.app',
    host: 'domain.app',
    open: 'external',
    https: {
        key: '/homedir/.config/valet/Certificates/domain.app.key',
        cert: '/homedir/.config/valet/Certificates/domain.app.crt',
    },

Cheers

1-3 of 3