diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index cf9aa0bdf2..40fb0f0bc2 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.1.20", + "version": "0.1.21", "description": "Javascript library to display typebots on your website", "type": "module", "main": "dist/index.js", diff --git a/packages/embeds/nextjs/package.json b/packages/embeds/nextjs/package.json index 447d232038..f6a6340fa0 100644 --- a/packages/embeds/nextjs/package.json +++ b/packages/embeds/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/nextjs", - "version": "0.1.20", + "version": "0.1.21", "description": "Convenient library to display typebots on your Next.js website", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/embeds/react/package.json b/packages/embeds/react/package.json index 130bb32c1e..e504ee3541 100644 --- a/packages/embeds/react/package.json +++ b/packages/embeds/react/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/react", - "version": "0.1.20", + "version": "0.1.21", "description": "Convenient library to display typebots on your React app", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/env/getRuntimeVariable.ts b/packages/env/getRuntimeVariable.ts index 645215b854..621913cba6 100644 --- a/packages/env/getRuntimeVariable.ts +++ b/packages/env/getRuntimeVariable.ts @@ -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] }