]> Untitled Git - lemmy-ui.git/commitdiff
Use LEMMY_UI_DEBUG for development mode. (#644)
authorDessalines <dessalines@users.noreply.github.com>
Thu, 26 May 2022 20:48:36 +0000 (16:48 -0400)
committerGitHub <noreply@github.com>
Thu, 26 May 2022 20:48:36 +0000 (16:48 -0400)
src/server/index.tsx

index a45e1b0ff1f933817e1223921b250242ac5a8f15..65f7308c251a70ba6bd157ae28e7854fb6e1f081 100644 (file)
@@ -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",