From 207f23a04ffd8fb275c74445ebdb48d7a4ac790b Mon Sep 17 00:00:00 2001 From: Derotino Silveira Date: Fri, 23 Feb 2024 15:42:33 -0300 Subject: [PATCH] fix: fix global --- src/lib/getEnv.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/getEnv.ts b/src/lib/getEnv.ts index e63130c..819b943 100644 --- a/src/lib/getEnv.ts +++ b/src/lib/getEnv.ts @@ -1,7 +1,7 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any -(global as any).process = (global as any).process ?? { env: {} }; +(globalThis as any).process = (globalThis as any).process ?? { env: {} }; export function getEnvVariable(name: string): string | undefined { // eslint-disable-next-line @typescript-eslint/no-explicit-any - return (global as any).process.env[name]; + return (globalThis as any).process.env[name]; } \ No newline at end of file