const express = require('express')
const path = require('path')
const server = express()

server.use(express.static(path.join(__dirname, 'dist')))

server.get('*', (req, res) => {
  res.sendFile(path.join(__dirname, 'dist', 'index.html'))
})

server.listen(3010, () => {
  console.log('Listening at http://localhost:3010/')
})
