Skip to content

Commit 8bd4abc

Browse files
committed
fix: use 'folder: false' to use bs-local with an internal server
1 parent c2da01f commit 8bd4abc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Your browserstack user name<br/>
6565
- `key` (_string_)<br/>
6666
Your browserstack key<br/>
6767
> for security reasons it is recommended to use the env var `BROWSERSTACK_KEY` instead
68-
- `folder` (_string_, optional)<br/>
69-
The path to the folder which should be accessible through the browserstack-local tunnel. If not provided the default `folder` browser config option is used
68+
- `folder` (_string_, _boolean_ optional)<br/>
69+
The path to the folder which should be accessible through the browserstack-local tunnel. Explicitly set this to `false` if you wish to test an internal server. If any other falsy value is provided the default `folder` browser config option is used.
7070

7171
## Browser methods
7272

src/utils/commands/browserstack-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class BrowserStackLocal {
1919

2020
static async start(config = {}) {
2121
// TODO: support webserver
22-
if (!config.folder) {
22+
if (!config.folder && config.folder !== false) {
2323
config.folder = path.resolve(process.cwd())
2424
}
2525

0 commit comments

Comments
 (0)