Skip to content

Commit aa31e78

Browse files
committed
Added some timeouts
1 parent 1e34edf commit aa31e78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/usr/bin/env node
2+
'use strict';
3+
24
var prerender = require('prerender');
35
var redisCache = require('./lib/redisCache');
46

57
var server = prerender({
68
workers: process.env.PRERENDER_NUM_WORKERS,
7-
iterations: process.env.PRERENDER_NUM_ITERATIONS
9+
iterations: process.env.PRERENDER_NUM_ITERATIONS,
10+
resourceDownloadTimeout: process.env.RESOURCE_DOWNLOAD_TIMEOUT || 40000,
11+
jsTimeout: process.env.JS_TIMEOUT || 40000
812
});
913

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

0 commit comments

Comments
 (0)