The community members discuss where the live site is hosted when publishing from the editor. The answer provided is that the sites are hosted on Cloudflare Workers, and if a custom domain is used, it is deployed to a separate Worker than the staging domain (wstd.io). The builder and projects are separate, and when publishing, the project is built into an app and then deployed to the Cloudflare Worker, which makes the projects more stable, secure, and fast. The community members also discuss the open-source nature of the live site loading, and one community member is curious about how the live page loads so quickly compared to their own product.
Hello, when you are in the editor then publish site and visit live site, where is the live site actually hosted? I see it's in wbst.io, are the live sites uploaded to a different domain completely? Thanks
The sites are hosted on Cloudflare Workers. If you add a custom domain, then it's deployed to a separate Worker than the site that goes to the staging domain (wstd.io)
Yeah the builder and projects are separate. When you publish, part of the reason it takes a while is because it's building your project into an app then deploying it to the Cloudflare Worker
Last question, is the part where the live site is loaded open source as well? I mean do you just send it html CSS js ? There is some sort of micro service that decompressed the package to display it I assume ?
Yes, since you are open source I thought this was appropriate ahah, my product is a bit different from webstudio though. my main issue is that live page loads take like 5-6 seconds on first load which is bad so i'm admirative of how you load it nearly instantly that's why i'm curious π