Add rage button to debug menu (#15291)

* + Rage

* tinkering

* remove if statement wrapper and modify error message

* add test cases

* more work on test cases

* adding contexts to test cases

* test(debug): fix up tests

* fix(lint): whisepate

---------

Co-authored-by: Sabe Jones <sabe@habitica.com>
This commit is contained in:
Natalie
2024-08-13 01:34:37 -04:00
committed by Phillip Thelen
parent 8a3824ec02
commit 62f5b9698a
4 changed files with 120 additions and 1 deletions

View File

@@ -4,7 +4,6 @@ import {
} from '../libs/errors';
export default function ensureDevelopmentMode (req, res, next) {
console.log(nconf.get('DEBUG_ENABLED'), nconf.get('BASE_URL'));
if (nconf.get('DEBUG_ENABLED') && nconf.get('BASE_URL') !== 'https://habitica.com') {
next();
} else {