use sendfile instead of sendFile

This commit is contained in:
Bilal Catic
2019-08-31 14:03:23 +02:00
parent 0c049b846c
commit 33267c7e4f

View File

@@ -29,7 +29,7 @@ app.use(express.static(path.join(__dirname, 'client/build')));
//production mode //production mode
if(process.env.NODE_ENV === 'production') { if(process.env.NODE_ENV === 'production') {
app.get('*', (req, res) => { app.get('*', (req, res) => {
res.sendFile(path.join(__dirname = 'client/build/index.html')); res.sendfile(path.join(__dirname = 'client/build/index.html'));
}); });
} }