text: const {
      static
  } = require('express');
  const express = require('express');
  const app = express();
  
  app.use(static(__dirname + '/dist'));
  
  app.all('*', (req, res) => {
      res.status(200).sendFile(__dirname + '/dist/index.html');
  });
  
  app.listen(process.env.PORT || 8080);