DEV: Add favicon to dev ember proxy (#18228)

One less console warning in tests
This commit is contained in:
Jarek Radosz 2022-09-12 15:46:50 +02:00 committed by GitHub
parent 5c0f770f0f
commit 761864d4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -462,6 +462,11 @@ to serve API requests. For example:
const rawMiddleware = express.raw({ type: () => true, limit: "100mb" });
app.use(
"/favicon.ico",
express.static(path.join(__dirname, "../../../../images/favicon.ico"))
);
app.use(rawMiddleware, async (req, res, next) => {
try {
if (this.shouldForwardRequest(req)) {