#!/usr/bin/env node
var prerender = require('./lib');

var server = prerender({
    workers: process.env.PRERENDER_NUM_WORKERS || 1,
    iterations: process.env.PRERENDER_NUM_ITERATIONS || 1
});


server.use(prerender.sendPrerenderHeader());
// server.use(prerender.basicAuth());
// server.use(prerender.whitelist());
server.use(prerender.blacklist());
// server.use(prerender.logger());
server.use(prerender.removeScriptTags());
server.use(prerender.httpHeaders());
server.use(prerender.inMemoryHtmlCache());
// server.use(prerender.s3HtmlCache());
server.start();

@@ -48,16 +48,66 @@
 lib');%0A%0A
+// https://github.com/prerender/prerender#options%0A
 var serv
@@ -126,16 +126,19 @@
 er(%7B%0A   
+ //
  workers
@@ -176,18 +176,36 @@
 KERS
- %7C%7C 1,
+, // os.cpus().length
 %0A   
+ //
  ite
@@ -254,12 +254,13 @@
 ONS 
-%7C%7C 1
+// 40
 %0A%7D);

remove test option