Hi everyone! I wondered if it is possible to use t...
# developers
t
Hi everyone! I wondered if it is possible to use the React embed component in combination with a self hosted Calcom server. The (self hosted) embed.js link as the calLink does not seem to work (with or without username appended like in the docs described) and I can't find anything useful in the docs/github/web. Anyone can point me in the right direction? Thanks!
h
Hi Tim, Yeah it's entire possible and people are already using it. Can you share the exact code that you are using? Also, when you say it's not working, what happens exactly. Screenshots of UI and console logs would be appreciated
t
Hi Hariom, beforehand I created an account on our self hosted calcom and then set the embedJsUrl of the Cal component to our self hosted embed js file, and set the calLink to the username of the account I created before.
<Cal
embedJsUrl={process.env.NEXT_PUBLIC_EMBED_LIB_URL}
calLink={'tim'}
/>
But this leads to a 404 when attempting to fetch:
https://<our-self-hosted-url>/embed/embed.js/tim/embed?embed=&__autoScroll=false&embedType=inline
Ah, I got it know, I had to set the calOrigin and embedJsUrl.