Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images on external connection have original proxy domain instead of IP address causing them to not load. #128

Open
josephfusco opened this issue Jan 21, 2016 · 2 comments

Comments

@josephfusco
Copy link

        browserSync: {
            dev: {
                bsFiles: {
                    src : [
                        '**/*.css',
                        '**/*.php',
                        '**/*.js',
                        '**/*.{png,jpg,jpeg,gif,webp,svg}'
                    ]
                },
                options: {
                    proxy: "wp.dev",
                    watchTask: true,
                    debugInfo: true,
                    browser: "google chrome",
                    logConnections: true
                }
            }
        }

My original machine is wp.dev. It runs beautifully served up on http://localhost:3000/, and the other computer shows the site on 192.168.0.3:3000.

My issue is that the image on the external machine are showing up as

<img src="http://wp.dev/path/to/image.jpg">

which is causing them all to be broken rather than

<img src="http://192.168.0.3:3000/path/to/image.jpg">

which shows them correctly.

Did I setup the config wrong?

@sandeepginside
Copy link

I too have the same question...

@ghost
Copy link

ghost commented Nov 6, 2017

Hi @josephfusco . I am also trying to figure this out. Did you managed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants