text: const DEFAULT_PORT = 3000;
  const PORT = process.env.PORT || DEFAULT_PORT;
  const PRERENDER_TOKEN = 'XXX';
  
  const path = require('path');
  const jsonServer = require('json-server');
  
  const server = jsonServer.create();
  const router = jsonServer.router(path.join(__dirname, 'db.json'));
  const middlewares = jsonServer.defaults({
      static: path.join(__dirname, '..', 'client')
  });
  
  server.use(middlewares);
  server.use(router);
  server.use(require('prerender-node').set('prerenderToken', PRERENDER_TOKEN));
  server.listen(PORT, () => {
      console.log(`JSON Server is running on http://localhost:${PORT}`);
  });
  