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",