Security fixes pass #2

This commit is contained in:
2026-04-19 16:00:59 +01:00
parent 3b26292124
commit b702e26bf6
40 changed files with 305 additions and 93 deletions
+2 -6
View File
@@ -1,10 +1,6 @@
export default function isDevelopment() {
const config = global.CONFIG;
if (process.env.NODE_ENV == "production") {
if (process.env.NODE_ENV === "production") {
return false;
}
if (config.development) {
return true;
}
return false;
return Boolean(global.CONFIG?.development);
}