From: Dessalines Date: Thu, 26 May 2022 20:48:36 +0000 (-0400) Subject: Use LEMMY_UI_DEBUG for development mode. (#644) X-Git-Url: http://these/git/README.ja.md?a=commitdiff_plain;h=fcb85efb198b04552357f4d4f8d3f801c1f1b756;p=lemmy-ui.git Use LEMMY_UI_DEBUG for development mode. (#644) --- diff --git a/src/server/index.tsx b/src/server/index.tsx index a45e1b0..65f7308 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -27,7 +27,7 @@ const [hostname, port] = process.env["LEMMY_UI_HOST"] const extraThemesFolder = process.env["LEMMY_UI_EXTRA_THEMES_FOLDER"] || "./extra_themes"; -if (process.env.NODE_ENV !== "development") { +if (!process.env["LEMMY_UI_DEBUG"]) { server.use(function (_req, res, next) { res.setHeader( "Content-Security-Policy",