2
0

build: 🩹 Fix build

This commit is contained in:
Baptiste Arnaud
2022-03-14 16:14:42 +01:00
parent aeb06433af
commit ec8a27e972
11 changed files with 26 additions and 27 deletions

View File

@ -21,7 +21,7 @@ export const ContainerEmbedCode = ({
const snippet = prettier.format(
parseSnippet({
publishId: typebot?.publicId ?? '',
url: `${process.env.NEXT_PUBLIC_VIEWER_URL}/${typebot?.publicId}`,
heightLabel,
widthLabel,
}),
@ -38,7 +38,7 @@ type SnippetProps = IframeParams &
Pick<ContainerEmbedCodeProps, 'widthLabel' | 'heightLabel'>
const parseSnippet = ({
publishId,
url,
customDomain,
backgroundColor,
hiddenVariables,
@ -48,7 +48,7 @@ const parseSnippet = ({
customDomain,
hiddenVariables,
backgroundColor,
publishId,
url,
})
return `${typebotJsHtml}
<div id="typebot-container" style="width: ${embedProps.widthLabel}; height: ${embedProps.heightLabel};"></div>