Add post on Pagefind search integration for static export - #99
Merged
Conversation
Covers why an existing indexer was chosen over a hand-rolled index, the postbuild-only bundle load, module-cache failure recovery, and manually parsing <mark> excerpts instead of dangerouslySetInnerHTML.
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.
변경 내용
content/posts/pagefind-search-without-a-server.md신규 포스트 추가.output: "export"정적 블로그에 Pagefind로 검색을 붙인 과정을 다룬다.변경 이유
기존 포스트 3편을 검토한 뒤, 코드베이스에 이미 구현돼 있지만 아직 글로 다루지 않은 주제로 검색 기능(
src/features/search)을 추천받아 작성했다. 다루는 내용:postbuild에서pagefind --site out을 돌리기로 한 이유webpackIgnore/turbopackIgnore로 동적 import하는 방식dangerouslySetInnerHTML대신 Pagefind 발췌의<mark>태그를 직접 파싱하고 HTML 엔티티를 디코딩하는 방식검증
CONTENT.md의 필수 필드 규칙(title,date,category,tags)에 맞춰 작성Generated by Claude Code