Skip to content

Commit

Permalink
pageLoadTimeout in env
Browse files Browse the repository at this point in the history
  • Loading branch information
pballester committed Dec 7, 2017
1 parent 1eab27c commit d4d7e87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ var redisCache = require('./lib/redisCache');
var viewPort = require('./lib/viewPort');

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

server.use(prerender.sendPrerenderHeader());
Expand Down

0 comments on commit d4d7e87

Please sign in to comment.