🐛 (embed) Make sure env.ts is not bundled in js embed lib
This commit is contained in:
4
packages/lib/getViewerUrl.ts
Normal file
4
packages/lib/getViewerUrl.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { env } from '@typebot.io/env'
|
||||
|
||||
export const getViewerUrl = () =>
|
||||
env.NEXT_PUBLIC_VIEWER_INTERNAL_URL ?? env.NEXT_PUBLIC_VIEWER_URL[0]
|
||||
Reference in New Issue
Block a user