Skip to content

sefedrs #2112

@wilkee29

Description

@wilkee29

I think I may have figured it out. I'm pointing the "proxy" to Vagrant's IP address, defining the desired "host" URL, opening it, and then I also had to add an extra entry to my hosts file to point the desired "host" URL to my local IP address. My browser then opens "lenovogaming.local:3000" that points to my local IP address, and my local IP address points to the "proxy" IP address. I hope this helps someone else in need.

Gulp

gulp.task('webserver', function() {
    browserSync.init({
        host: 'lenovogaming.local',
        open: 'external',
        proxy: 'http://192.168.33.10'
    });
});

Originally posted by @ryanaltvater in #1124

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions