summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-05-09 07:34:03 +0200
committerJulius Härtl <jus@bitgrid.net>2023-05-09 07:34:03 +0200
commita6966c0b2db79e188b31913e14d9fb5a656fa4cd (patch)
treeabca0d434107bfe1200f4a864de12098f4107939 /core/js
parent158405127b83e1881dedcf4da9989b83aca4ce10 (diff)
downloadnextcloud-server-a6966c0b2db79e188b31913e14d9fb5a656fa4cd.tar.gz
nextcloud-server-a6966c0b2db79e188b31913e14d9fb5a656fa4cd.zip
feat: Add setup check warning if instance is in debug mode
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/setupchecks.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 828c950d389..6260292db43 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -521,6 +521,12 @@
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
})
}
+ if (window.oc_debug) {
+ messages.push({
+ msg: t('core', 'This instance is running in debug mode. Only enable this for local development and not in production environments.'),
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
+ })
+ }
OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset', messages)
OC.SetupChecks.addGenericSetupCheck(data, 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering', messages)