Join the Webstudio community

Updated 3 months ago

How are the pages loaded live ?

At a glance

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
J
N
T
10 comments
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)
Ok, thanks for the answer, so it's loaded completely separately from the builder , right ? Like in a different project
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
This makes your projects more stable, secure, and fast
We could break the builder but your project would still be fine
I see, thanks
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 ?
Seems like youre doing research for your own product 🧐
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 πŸ™‚
THer builder creates a remix application, this code generated by the builder can be deployed in any service or server that runs this kinds of apps
Add a reply
Sign up and join the conversation on Discord