feat(embed): 🎨 Update instructions for 2.2.0
This commit is contained in:
@ -12,7 +12,7 @@ export const IframeEmbedCode = ({
|
||||
heightLabel,
|
||||
}: Props & FlexProps) => {
|
||||
const { typebot } = useTypebot()
|
||||
const src = `https://${typebot?.publicId}.typebot.io`
|
||||
const src = `${process.env.NEXT_PUBLIC_VIEWER_URL}/${typebot?.publicId}`
|
||||
const code = `<iframe src="${src}" width="${widthLabel}" height="${heightLabel}" />`
|
||||
|
||||
return <CodeEditor value={code} lang="html" isReadOnly />
|
||||
|
Reference in New Issue
Block a user