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