Heroku Production Build | JavaScript

March 10th, 2021 09:41:52 PM

					
if (process.env.NODE_ENV === "production") { app.use(express.static("client/build")); app.get("*", (req, res) => { res.sendFile(path.resolve(__dirname, "client", "build", "index.html")); }); }

Featured Posts