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:
parent
e98729c9e5
commit
cb41c68f77
9
src/utils/debugState.ts
Normal file
9
src/utils/debugState.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import process from "node:process";
|
||||||
|
|
||||||
|
|
||||||
|
export function isDebugMode() {
|
||||||
|
if (process.env["DEBUG"] === 'true') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user