This commit is contained in:
mjrode
2019-03-31 19:10:24 -05:00
parent 45ba23ea10
commit 6d7695e901
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export default () => {
});
if (process.env.NODE_ENV === 'production') {
app.use(express.static('client/build'));
server.use(express.static('client/build'));
const path = require('path');
app.get('*', (req, res) => {
res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));