Fixed production list sider shwoing on click by adding new component
This commit is contained in:
@@ -94,12 +94,13 @@ app.post("/utils/time", utils.servertime);
|
||||
//Serve React App if in Production
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
app.use(express.static(path.join(__dirname, "client/build")));
|
||||
app.use(express.static(path.join(__dirname, "admin/build")));
|
||||
|
||||
app.get("/service-worker.js", (req, res) => {
|
||||
res.sendFile(path.resolve(__dirname, "..", "build", "service-worker.js"));
|
||||
});
|
||||
|
||||
app.get("/admin/*", function (req, res) {
|
||||
app.get("/admin*", function (req, res) {
|
||||
res.sendFile(path.join(__dirname, "admin/build", "index.html"));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user