From: Dessalines Date: Wed, 13 Apr 2022 15:33:00 +0000 (-0400) Subject: Adding a LEMMY_UI_DEBUG flag for eruda debugging (#624) X-Git-Url: http://these/git/README.ja.md?a=commitdiff_plain;h=35f1e062220caafea7f4a55bf8323faaf6fed8bd;p=lemmy-ui.git Adding a LEMMY_UI_DEBUG flag for eruda debugging (#624) --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 7b83760..b6db498 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -171,6 +171,14 @@ server.get("/*", async (req, res) => { /> ); + const eruda = ( + <> + + + + ); + const erudaStr = process.env["LEMMY_UI_DEBUG"] ? renderToString(eruda) : ""; + const root = renderToString(wrapper); const symbols = renderToString(SYMBOLS); const cspStr = process.env.LEMMY_EXTERNAL_HOST @@ -187,10 +195,8 @@ server.get("/*", async (req, res) => { - + + ${erudaStr} ${helmet.title.toString()} ${helmet.meta.toString()}