fix: themes

This commit is contained in:
David Nguyen
2025-02-18 15:17:13 +11:00
parent fb16214dc5
commit dd602a7e1c
4 changed files with 35 additions and 28 deletions

View File

@ -13,7 +13,7 @@ export const env = (variable: EnvironmentVariable | (string & object)): string |
return window.__ENV__[variable];
}
return process?.env?.[variable];
return typeof process !== 'undefined' ? process?.env?.[variable] : undefined;
};
export const createPublicEnv = () =>