mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-09 18:05:09 +00:00
Use LEMMY_UI_DEBUG for development mode. (#644)
This commit is contained in:
parent
023cb78594
commit
fcb85efb19
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue