From f96bb508790d4e71a3c048e761cd37d731dc64fe Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sat, 13 Mar 2021 20:23:16 +0300 Subject: [PATCH] change client serve dir one directory up because now it's in src/ --- src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index 0440eb0..ddbca68 100644 --- a/src/app.js +++ b/src/app.js @@ -51,10 +51,10 @@ if ( process.env.NODE_ENV === "production" || process.env.NODE_ENV === "development" ) { - app.use(express.static(path.join(__dirname, "client/build"))); + app.use(express.static(path.join(__dirname, "../client/build"))); app.use( "*", - express.static(path.join(__dirname, "client/build/index.html")), + express.static(path.join(__dirname, "../client/build/index.html")), ); }