text: /* eslint-disable no-process-env, no-magic-numbers, @typescript-eslint/no-var-requires */
  
  const express = require('express');
  const path = require('path');
  
  const port = process.env.PORT || 8080;
  const app = express();
  
  app.use(express.static(path.join(__dirname, 'dist')));
  
  // Always send the user to index.html for non-static files.
  app.get('*', (req, res) => {
    res.sendFile(path.resolve(__dirname, 'index.html'));
  });
  
  app.listen(port, () => {
    console.log(`Example app listening at http://localhost:${port}`); // eslint-disable-line no-console
  });
  