SnowdogApps / magento2-frontools

Set of front-end tools for Magento 2 based on Gulp.js
MIT License
430 stars 142 forks source link

Browser-sync gives Too many redirects when entering localhost:3000 #455

Closed pierre-denissen closed 1 year ago

pierre-denissen commented 1 year ago

Hi,

I have Valet installed (on Mac). When I run gulp dev my browser-sync service starts and serves https://localhost:3000. The browser gives the error: localhost redirected you too many times. ERR_TOO_MANY_REDIRECTS.

My browser-sync.json looks like this:

[
  {
    "proxy": "example.nl.local.xpdev.nl",
    "https": true,
    "rewriteRules": [
      {
        "match": ".example.nl.local.xpdev.nl",
        "replace": ""
      }
    ]
  }
]

Where example.nl.local.xpdev.nl is my local domain served by Valet.

I guess I'm missing something. Who can help?

pierre-denissen commented 1 year ago

Solved by adding this:

{
    "proxy": "http://mylocaldomain",
    "https": true
  }