Join the Webstudio community

Updated 6 months ago

Static export for self-hosting: Generating pages from CMS data or a "no dynamic pages" limitation?

At a glance

The community members are discussing the limitations of the Static Export feature for self-hosting. The main points are:

- During the build process, resources are fetched but dynamic URLs are unknown, so only resources that don't depend on routing will work on the static pages.

- There is potential to improve this, but the community wants to see the demand for it first.

- Some community members feel that turning everything dynamic into static is a bit backwards, as the platform is built for dynamic sites.

- However, others think this feature would be useful, even for "archiving" projects, and mention a tool that can do something similar for Webflow.

There is no explicitly marked answer in the comments.

Useful resources
Does the Static Export for self hosting run a build that would generate pages based on CMS data or is that the "No Dynamic Pages" limitation mentioned? I would just assume that it would run a build and output a static page from that and that it just wouldnt be SSR so no dynamic upates to those built bages, but wanted to get some clarity
O
m
9 comments
during build Resources are being fetched but dynamic urls are unkown, so only if the resource doesn't depend on routing
so resources on static pages will keep working
there is some potential to improve that as well, but we want to see the demand for it first
technically these dynamic use cases is exactly why we didn't have static exports in the first place
its built for dynamic sites, so turning everything dynamic into static is a bit backwards
I think this feature would be very useful. Even for "archiving" projects. For webflow there is a hack that can do something like that https://webflow-exporter.sktch.io/
seems like a generic crowler that just downloads everything from the public website, we had tools that do it for 20 years or more
justt tried to export webflow.com with it for fun, seems to have only gotten the first page
Oh hahah it works sometimes πŸ˜‚
Add a reply
Sign up and join the conversation on Discord