We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 190b24b commit 829448bCopy full SHA for 829448b
frontend/server.js
@@ -37,7 +37,12 @@ if (DEVELOPMENT) {
37
"/assets",
38
express.static("build/client/assets", { immutable: true, maxAge: "1y" }),
39
);
40
- app.use(morgan("tiny", { skip: (_req, res) => res.statusCode < 400 }));
+ app.use(morgan("tiny", {
41
+ skip: (req, res) => {
42
+ return res.statusCode < 400
43
+ || req.url === "/favicon.ico"
44
+ }
45
+ }));
46
app.use(express.static("build/client", { maxAge: "1h" }));
47
app.use(await import(BUILD_PATH).then((mod) => mod.app));
48
}
0 commit comments