Skip to content

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

Description

@josephfusco
        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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions