2
0

docs(share): 📝 Update typebot URL in embed instructions

This commit is contained in:
Baptiste Arnaud
2022-03-21 18:52:43 +01:00
parent 11101a4600
commit 71816f76ad
10 changed files with 56 additions and 14 deletions

View File

@ -39,7 +39,10 @@ const StandardInstructions = ({ publicId }: Pick<ModalProps, 'publicId'>) => {
})
const jsCode = parseInitContainerCode({
url: `${process.env.NEXT_PUBLIC_VIEWER_URL}/${publicId}`,
url: `${
process.env.NEXT_PUBLIC_VIEWER_INTERNAL_URL ??
process.env.NEXT_PUBLIC_VIEWER_URL
}/${publicId}`,
})
const headCode = `${typebotJsHtml}
<script>