fix(search): Pagefind 로드 실패 시 캐시 초기화 및 basePath 지원 - #86
Merged
Conversation
- Pagefind 번들 로드 실패(Promise Reject) 시 모듈 레벨 캐시(bundle)를 초기화해 재시도 가능하도록 개선 - 하드코딩된 /pagefind/pagefind.js 경로를 NEXT_PUBLIC_BASE_PATH와 연동하여 GitHub Pages 서브디렉터리 배포 404 방지 - 번들 URL 정규화 및 캐시 초기화에 대한 단위 테스트(tests/pagefind.test.ts) 추가
- .env.example에 서브경로(NEXT_PUBLIC_BASE_PATH) 설정 주석 및 예시 추가 - next.config.ts에 NEXT_PUBLIC_BASE_PATH 기반 basePath/assetPrefix 설정 연동
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.
bundle)를 초기화해 재시도 가능하도록 개선/pagefind/pagefind.js경로를NEXT_PUBLIC_BASE_PATH와 연동하여 GitHub Pages 서브디렉터리 배포 404 방지next.config.ts에NEXT_PUBLIC_BASE_PATH를 통한basePath/assetPrefix설정 연동.env.example에NEXT_PUBLIC_BASE_PATH설정 예시 및 서브경로 배포 설명 추가tests/pagefind.test.ts) 추가