Skip to content

sefedrs #2112

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

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