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
|
//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'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user