🐛 (embed) Fix env reading in embed
This commit is contained in:
1
packages/env/getRuntimeVariable.ts
vendored
1
packages/env/getRuntimeVariable.ts
vendored
@ -6,5 +6,6 @@ const isBrowser = () => Boolean(typeof window !== 'undefined' && window.__ENV)
|
||||
|
||||
export const getRuntimeVariable = (key: string) => {
|
||||
if (isBrowser()) return window.__ENV[key]
|
||||
if (typeof process === 'undefined') return undefined
|
||||
return process.env[key]
|
||||
}
|
||||
|
Reference in New Issue
Block a user