Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require('express');
- const bodyParser = require('body-parser')
- const path = require('path');
- const app = express();
- app.use(require('prerender-node').set('prerenderToken', 'APIKEY'));
- app.use(express.static(path.join(__dirname, 'build')));
- app.get('/*', function (req, res) {
- res.sendFile(path.join(__dirname, 'build', 'index.html'));
- });
- app.listen(9000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement