T
Typebot9mo ago
shankar

hosting in docker

Hey I am new to this... I am planning to self host typebot using docker. Wondering what would be the embed url to use it in html ? Below snippet I found in docs but this is using cloud's url( https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js) since I deployed typebot in docker in local, what would be the new localhost url ?
<script type="module">
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js'

Typebot.initStandard({
typebot: 'my-typebot',
})
</script>

<typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
<script type="module">
import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js'

Typebot.initStandard({
typebot: 'my-typebot',
})
</script>

<typebot-standard style="width: 100%; height: 600px; "></typebot-standard>
instead of this https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js what i need to use ? please help
2 Replies
William
William9mo ago
Hi @shankar, you dont need to change it...the same one works
Baptiste
Baptiste9mo ago
You'd need to change the apiHost field in initStandard

Did you find this page helpful?