Skip to content

Commit 5fab72d

Browse files
committed
pass slowmo_ms when run on local
1 parent 6016c63 commit 5fab72d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $ git clone -o starter-kit https://github.com/sambaiz/puppeteer-lambda-starter-k
88

99
## Run on local
1010

11-
By executing `npm run local`, you can check the operation while actually viewing the chrome. (non-headless, slowmo)
11+
By executing `SLOWMO_MS=250 npm run local`, you can check the operation while actually viewing the chrome (non-headless, slowmo).
1212

1313
## Packaging & Deploy
1414

src/starter-kit/local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const util = require('./util');
33

44
index.run({
55
headless: false,
6-
slowMo: 250,
6+
slowMo: process.env.SLOWMO_MS,
77
dumpio: !!util.DEBUG,
88
// use chrome installed by puppeteer
99
}).then(

0 commit comments

Comments
 (0)