Use LEMMY_UI_DEBUG for development mode.

This commit is contained in:
Dessalines 2022-05-24 13:27:03 -04:00 committed by Dessalines
parent 023cb78594
commit 8fc440ab43

View file

@ -27,7 +27,7 @@ const [hostname, port] = process.env["LEMMY_UI_HOST"]
const extraThemesFolder = const extraThemesFolder =
process.env["LEMMY_UI_EXTRA_THEMES_FOLDER"] || "./extra_themes"; 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) { server.use(function (_req, res, next) {
res.setHeader( res.setHeader(
"Content-Security-Policy", "Content-Security-Policy",