Guest User

Untitled

a guest
Jan 7th, 2021
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. const express = require('express');
  3. const bodyParser = require('body-parser')
  4. const path = require('path');
  5. const app = express();
  6. app.use(require('prerender-node').set('prerenderToken', 'APIKEY'));
  7.  
  8. app.use(express.static(path.join(__dirname, 'build')));
  9. app.get('/*', function (req, res) {
  10. res.sendFile(path.join(__dirname, 'build', 'index.html'));
  11. });
  12. app.listen(9000);
  13.  
RAW Paste Data