Articulation
Articulation•17mo ago

Hosting for Script Tag

Is it possible to use Convex on a Webflow or Framer websites? On these platforms we can add script tags, but we can't host the /convex folder... so I'm looking at the docs https://docs.convex.dev/quickstart/script-tag and a little confused. Can I host my repo with convex functions at say domainA.com, and then domainB.com is on Webflow or Framer, has the JS script installed, and it calls the convex URL at domainB? If that makes sense, but I think I'm confused and this isn't possible.
4 Replies
ian
ian•17mo ago
The Convex functions are hosted by us - the /convex directory gets deployed when you run npx convex dev (in development) or npx convex deploy (pushing to production). So you can deploy to us, then have a page with the script tag point at the deployed functions. The url would look like https://some-animal-123.convex.cloud.
Articulation
ArticulationOP•17mo ago
Amazing!!! Thank you So I'd just have a private repo for deploying the convex functions, no need to deploy it live on www
ian
ian•17mo ago
It can live in the same repo as your frontend code ideally (for sharing types, etc), but yes it doesn't need to show up on the website anywhere (it's not like next.js) If your frontend isn't in a repo, then yes you can just have a private repo that you deploy from. Let us know how it goes - I haven't been building with the script tag much, so I'm curious if there are any DX rough edges to improve, e.g. around getting type safety or finding the right URL for the client.
Articulation
ArticulationOP•17mo ago
Will do 🙂

Did you find this page helpful?