Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Allow configuring BrowserSync on a per project basis #5

Description

@felipearosemena

Context

While working on a Shopify site using the Back in Stock app, I found I needed to work with a URL with no port attached (localhost instead of localhost:3000). This was due to a limitation of the app, which I didn't really have control over.

Solution

Changed the port in watcher.js to 443 (the browser's default https port)

return {
      proxy: {
           ...
          port: 443
      }
}

Then ran start as sudo:

sudo yarn start

This boots up your browser with just localhost, instead of localhost:3000

Caveat

I had to edit the npm package source directly. What would the level of effort be to make this configurable without having to edit the package's source?

Activity

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

Metadata

Metadata

Assignees

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