Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static site generation is a CLI feature for sites with sitemaps #2980

Open
ealmloff opened this issue Sep 19, 2024 · 0 comments
Open

Static site generation is a CLI feature for sites with sitemaps #2980

ealmloff opened this issue Sep 19, 2024 · 0 comments
Labels
cli Related to the dioxus-cli program fullstack related to the fullstack crate static-generation

Comments

@ealmloff
Copy link
Member

Feature Request

The current static site generation package is just a way to build a sitemap and then use that sitemap to generate static html for each page

Implement Suggestion

We could add sitemap generation support to fullstack and remove the need for a static generation page by just adding sitemaps as an option for fullstack. You could then emulate a static file server for fullstack with a setting in the dioxus.toml or a flag in the CLI that:

  1. Builds fullstack
  2. Launches the fullstack server
  3. Fetches the /sitemap.xml file
  4. Fetches any urls the sitemap links to and copies the resulting html into the dist directory
  5. Shuts down the fullstack server
  6. Serves static files from the prebuilt dist directory
@ealmloff ealmloff added cli Related to the dioxus-cli program fullstack related to the fullstack crate static-generation labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the dioxus-cli program fullstack related to the fullstack crate static-generation
Projects
None yet
Development

No branches or pull requests

1 participant