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

Fix search index generation #406

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ealmloff
Copy link
Member

This should only be merged after DioxusLabs/dioxus-search#4 is merged. The CLI tries to render routes in parallel, so generating the search index in a component is a race condition. If the search index is rendered before the rest of the pages, then the index will have a incorrect url structure. This PR moves search index generation to a separate step after SSG

It also adds a production flag so the search index generation can be tested locally

Fixes #405

@ealmloff ealmloff added the bug Something isn't working label Jan 31, 2025
@ealmloff ealmloff requested a review from jkelleyrtp January 31, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doc search is broken
1 participant