From 8fc440ab436d720ba181633d8f11d239c4be2958 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 24 May 2022 13:27:03 -0400 Subject: [PATCH] Use LEMMY_UI_DEBUG for development mode. --- src/server/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index a45e1b0f..65f7308c 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",