updated server.js

This commit is contained in:
Ulf Gebhardt 2022-01-05 20:14:29 +01:00
parent f8878ce65a
commit c0d5fea248
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -28,7 +28,7 @@ app.use(express.static(path.join(__dirname, '../dist')))
app.get('*', (req, res) => {
// eslint-disable-next-line no-console
console.log('Request', req)
res.sendFile(__dirname, '../dist/index.html')
res.sendFile(path.join(__dirname, '../dist/index.html'))
})
app.listen(port, hostname, () => {