This PR introduces a new dioxus-static-site-generation crate that handles the setup for statically generated and hydrated sites like the docsite.
Why is this a separate crate?
This is a separate crate instead of a feature in fullstack or the router because static site generation needs to pull in the sitemap from the router crate and the router crate needs to pull in the router context from the fullstack crate.
Static site generation can also make sense with or without dioxus fullstack depending on if you want a pure SSG only page or a page with SSG and hydration. This PR is focused on SSG with hydration, but we could support SSG without prerendering in the future
TODO:
[x] Get SSG working with fullstack
[x] Integrate SSG with the launch builder
[x] SSG platform for the CLI - Mostly reusing fullstack for now
[x] Wire up hot reloading - refactor CLI/Fullstack hot reloading code
This PR introduces a new
dioxus-static-site-generation
crate that handles the setup for statically generated and hydrated sites like the docsite.Why is this a separate crate?
This is a separate crate instead of a feature in fullstack or the router because static site generation needs to pull in the sitemap from the router crate and the router crate needs to pull in the router context from the fullstack crate.
Static site generation can also make sense with or without dioxus fullstack depending on if you want a pure SSG only page or a page with SSG and hydration. This PR is focused on SSG with hydration, but we could support SSG without prerendering in the future
TODO:
Closes #2006 Closes https://github.com/DioxusLabs/dioxus/issues/2249 Closes https://github.com/DioxusLabs/dioxus/issues/1847