diff --git a/server.js b/server.js index 3dbc02c31..dc4622941 100644 --- a/server.js +++ b/server.js @@ -130,22 +130,22 @@ app.post("/qbo/authorize", qbo.authorize); app.get("/qbo/callback", qbo.callback); //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"))); +// 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, "client/build", "service-worker.js")); - }); +// app.get("/service-worker.js", (req, res) => { +// res.sendFile(path.resolve(__dirname, "client/build", "service-worker.js")); +// }); - app.get("/admin*", function (req, res) { - res.sendFile(path.join(__dirname, "admin/build", "index.html")); - }); +// app.get("/admin*", function (req, res) { +// res.sendFile(path.join(__dirname, "admin/build", "index.html")); +// }); - app.get("*", function (req, res) { - res.sendFile(path.join(__dirname, "client/build", "index.html")); - }); -} +// app.get("*", function (req, res) { +// res.sendFile(path.join(__dirname, "client/build", "index.html")); +// }); +// } if (process.env.NODE_ENV === "production") { app.listen(port, (error) => {