fixed routing folder

This commit is contained in:
Sendou
2019-05-07 21:31:08 +03:00
parent b4fc7d53a5
commit b5445da31a

View File

@@ -317,7 +317,7 @@ server.applyMiddleware({ app })
app.use(express.static('build'))
app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, 'public', 'index.html'));
res.sendFile(path.resolve(__dirname, 'build', 'index.html'))
})
const PORT = process.env.PORT || 3001