change client serve dir

one directory up because now it's in src/
This commit is contained in:
2021-03-13 20:23:16 +03:00
parent 73e9a21c4a
commit f96bb50879

View File

@@ -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")),
);
}