Skip to content

Commit d4d7e87

Browse files
committed
pageLoadTimeout in env
1 parent 1eab27c commit d4d7e87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ var redisCache = require('./lib/redisCache');
66
var viewPort = require('./lib/viewPort');
77

88
var server = prerender({
9-
chromeFlags: ['--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9222', '--hide-scrollbars']
9+
chromeFlags: ['--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9222', '--hide-scrollbars'],
10+
pageLoadTimeout: process.env.PAGE_LOAD_TIMEOUT || 20 * 1000
1011
});
1112

1213
server.use(prerender.sendPrerenderHeader());

0 commit comments

Comments
 (0)