mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 19:31:26 +00:00
Use LEMMY_UI_DEBUG for development mode. (#644)
This commit is contained in:
parent
023cb78594
commit
fcb85efb19
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue