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>
This commit is contained in:
Mathis H (Avnyr) 2024-05-02 14:11:48 +02:00
parent e98729c9e5
commit cb41c68f77
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

9
src/utils/debugState.ts Normal file
View File

@ -0,0 +1,9 @@
import process from "node:process";
export function isDebugMode() {
if (process.env["DEBUG"] === 'true') {
return true;
}
return false;
}