BrowserSync не работает при подключении LTE ⇐ Apache
-
Anonymous
BrowserSync не работает при подключении LTE
My local dev environment has apache running with a dynamic virtual host which allows me to have any project accessible via a consistent url structure: http://[client_name].[project_name].localhost
VirtualDocumentRoot "/Users/mbp/repos/%1/websites/%2/public_html" ServerName sites.localhost ServerAlias *.*.localhost UseCanonicalName Off SetHandler server-status Order allow,deny Allow from all my package.json file includes a client and site key/value which is then imported into my gulpfile and makes these values accessible via pkg.client & pkg.site.
const { default: pkg } = await import("./package.json", { assert: { type: "json", }, }); My gulpfile.js inits browserSync
browserSync.init({ notify: false, proxy: pkg.client + '.' + pkg.site + '.localhost' }); When I run gulp, it opens a new browser window to http://localhost:3000
If i'm on a wifi connection, this works flawlessly.
If i'm on a tethered LTE connection (Mobile Data), it will not load.
Has anyone encountered this and have a fix?
Источник: https://stackoverflow.com/questions/781 ... connection
My local dev environment has apache running with a dynamic virtual host which allows me to have any project accessible via a consistent url structure: http://[client_name].[project_name].localhost
VirtualDocumentRoot "/Users/mbp/repos/%1/websites/%2/public_html" ServerName sites.localhost ServerAlias *.*.localhost UseCanonicalName Off SetHandler server-status Order allow,deny Allow from all my package.json file includes a client and site key/value which is then imported into my gulpfile and makes these values accessible via pkg.client & pkg.site.
const { default: pkg } = await import("./package.json", { assert: { type: "json", }, }); My gulpfile.js inits browserSync
browserSync.init({ notify: false, proxy: pkg.client + '.' + pkg.site + '.localhost' }); When I run gulp, it opens a new browser window to http://localhost:3000
If i'm on a wifi connection, this works flawlessly.
If i'm on a tethered LTE connection (Mobile Data), it will not load.
Has anyone encountered this and have a fix?
Источник: https://stackoverflow.com/questions/781 ... connection
Мобильная версия