Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle the JS library within the build #1785

Open
Lanhild opened this issue Sep 11, 2024 · 0 comments
Open

Bundle the JS library within the build #1785

Lanhild opened this issue Sep 11, 2024 · 0 comments
Labels
Dev feature ✨ New developer feature or improvement

Comments

@Lanhild
Copy link
Contributor

Lanhild commented Sep 11, 2024

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)

@baptisteArno baptisteArno added the Dev feature ✨ New developer feature or improvement label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev feature ✨ New developer feature or improvement
Projects
Status: Backlog ☁️
Development

No branches or pull requests

2 participants