Skip to content

Instantly share code, notes, and snippets.

@mort3za
Created March 17, 2021 21:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mort3za/9f2186087501402b3eac048f004107f2 to your computer and use it in GitHub Desktop.
Save mort3za/9f2186087501402b3eac048f004107f2 to your computer and use it in GitHub Desktop.
How to use BrowserStack to see local development page (localhost)?
1. Download the BrowserStack binary from here:
https://www.browserstack.com/docs/live/local-testing
And setup it with your API key.
2. Map bs-local.com to 127.0.0.1 in your hosts file.
3. Build your web application with production environment (If you have a speedy internet connection, you may want to run it with development env)
4. Run your local server (localhost:3000 or similar) and test bs-local.com:3000 works too.
5. Run BrowserStack binary eighter from terminal or GUI.
6. Go to BrowserStack dashboard, run a browser, enable local testing if it's not active and open bs-local.com:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment