fixed vite related issues, leftover issues from Moving to MUI, some visual changes
This commit is contained in:
@@ -16,6 +16,7 @@ app.use("/api/posts", require("./routers/api/posts"));
|
||||
|
||||
// Serve static assets in production
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
console.log("in production");
|
||||
app.use(express.static("client/build"));
|
||||
app.get("*", (req, res) => [
|
||||
res.sendFile(path.resolve(__dirname, "client", "build", "index.html")),
|
||||
|
||||
Reference in New Issue
Block a user