🔍 Build Pagefind index on first dev run when it's missing#342
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
0xharkirat
previously approved these changes
Jun 19, 2026
0xharkirat
left a comment
There was a problem hiding this comment.
LGTM - wait for the github actions workflows to complete and then good to merge
3314f2f to
0e6443f
Compare
predev only warned when the index was absent, so search silently broke until the user knew to run build-local-pagefind by hand. Build it automatically on the first dev run instead. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0e6443f to
e486a25
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Search silently breaks in dev when the Pagefind index is absent —
predevonly printed a warning telling the user to runbuild-local-pagefindthemselves. This builds the index automatically on the first dev run instead.How
scripts/check-pagefind.js: whenpagefind-entry.jsonis missing, runpnpm build-local-pagefind(a full build + index) instead of just warning. The staleness-age warning for an existing index is unchanged.Reviewer notes
pnpm devis unaffected.