mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
import nconf from 'nconf';
|
|
import {
|
|
NotFound,
|
|
} from '../libs/errors';
|
|
|
|
export default function ensureDevelopmentMode (req, res, next) {
|
|
if (nconf.get('DEBUG_ENABLED') && nconf.get('BASE_URL') !== 'https://habitica.com') {
|
|
next();
|
|
} else {
|
|
next(new NotFound());
|
|
}
|
|
}
|