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>
9 lines
144 B
TypeScript
9 lines
144 B
TypeScript
import process from "node:process";
|
|
|
|
|
|
export function isDebugMode() {
|
|
if (process.env["DEBUG"] === 'true') {
|
|
return true;
|
|
}
|
|
return false;
|
|
} |