From ec5d2abb66d29a8954744bc073219288f72710e3 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Sat, 31 Aug 2019 00:13:29 +0200 Subject: [PATCH] use sendFile instead of depreciated sendfile --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ff8a27d..7dfd5b9 100644 --- a/server.js +++ b/server.js @@ -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')); }); }