use sendfile instead of sendFile
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user