function initEnv(): Record { try { return import.meta.env as Record; } catch { return {}; } } function initIsProduction() { try { return import.meta.env.PROD === "true"; } catch { return false; } } export const argv: string[] = []; export const env: Record = initEnv(); export const isProduction: boolean = initIsProduction(); export const isDevelopment: boolean = !isProduction;