We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e34edf commit aa31e78Copy full SHA for aa31e78
server.js
@@ -1,10 +1,14 @@
1
#!/usr/bin/env node
2
+'use strict';
3
+
4
var prerender = require('prerender');
5
var redisCache = require('./lib/redisCache');
6
7
var server = prerender({
8
workers: process.env.PRERENDER_NUM_WORKERS,
- 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
12
});
13
14
server.use(prerender.sendPrerenderHeader());
0 commit comments