use sendFile instead of depreciated sendfile

This commit is contained in:
Bilal Catic
2019-08-31 00:13:29 +02:00
parent fc1ab154cf
commit ec5d2abb66

View File

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