brief-05-back/src/utils/debugState.ts
Mathis cb41c68f77
feat(utils): add debug state utility
This commit includes the creation of a new utility file for checking if the app is running in debugging mode. It exports `isDebugMode()` function that checks the `DEBUG` environment variable's value.

Signed-off-by: Mathis <yidhra@tuta.io>
2024-05-02 14:11:48 +02:00

9 lines
144 B
TypeScript

import process from "node:process";
export function isDebugMode() {
if (process.env["DEBUG"] === 'true') {
return true;
}
return false;
}