Starts a static server with prerender.
$ npm install -g static-prerender-server
$ static-prerender-server
$ npm install --save static-prerender-server
const server = require('static-prerender-server');
const path = require('path');
server({
port: 3000,
prerenderPort: 3002,
path: path.join(__dirname, 'public'),
fallbackFile: 'index.html',
callback: () => console.log('Server online!')
})
// or just run server() with no options
MIT © Bart Langelaan