2
0

feat(embed): 🎨 Update instructions for 2.2.0

This commit is contained in:
Baptiste Arnaud
2022-03-14 15:09:11 +01:00
parent 5a2df9fe72
commit 69701d12b9
4 changed files with 16 additions and 10 deletions

View File

@ -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 />