typebot.io
typebot.io copied to clipboard
Bundle the JS library within the build
Is your feature request related to a problem? Please describe. It would be very useful to have the JS embed library bundled within the build. This would allow self-hosters to import the library from their own instance, and not from npm.
Describe the solution you'd like
When you want to embed a bot in your website, instead of using import Typebot from 'https://cdn.jsdelivr.net/npm/@typebot.io/[email protected]/dist/web.js';, you would be able to use import Typebot from 'https://typebot.example.com/@typebot.io/js/dist/web.js';.
This wouldbe ideal as it makes no external connections (use your own instance to import the script in your website, rather than NPM)