A platform for community discussion. Free, open, simple.
DEV: Add favicon to dev ember proxy (#18228)
Jarek Radosz761864d4f441
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.jsindex ef11f4e9e65..56e42bef5c8 100644--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js@@ -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)) {