Skip to content

fix(search): Pagefind 로드 실패 시 캐시 초기화 및 basePath 지원 - #86

Merged
CoBool merged 2 commits into
mainfrom
fix/pagefind-resilience-and-base-path
Aug 16, 2026
Merged

fix(search): Pagefind 로드 실패 시 캐시 초기화 및 basePath 지원#86
CoBool merged 2 commits into
mainfrom
fix/pagefind-resilience-and-base-path

Conversation

@CoBool

@CoBool CoBool commented Aug 16, 2026

Copy link
Copy Markdown
Owner
  • Pagefind 번들 로드 실패(Promise Reject) 시 모듈 레벨 캐시(bundle)를 초기화해 재시도 가능하도록 개선
  • 하드코딩된 /pagefind/pagefind.js 경로를 NEXT_PUBLIC_BASE_PATH와 연동하여 GitHub Pages 서브디렉터리 배포 404 방지
  • next.config.tsNEXT_PUBLIC_BASE_PATH를 통한 basePath / assetPrefix 설정 연동
  • .env.exampleNEXT_PUBLIC_BASE_PATH 설정 예시 및 서브경로 배포 설명 추가
  • 번들 URL 정규화 및 캐시 초기화에 대한 단위 테스트(tests/pagefind.test.ts) 추가

CoBool added 2 commits August 16, 2026 20:21
- 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 설정 연동
@CoBool
CoBool merged commit c587036 into main Aug 16, 2026
1 check passed
@CoBool
CoBool deleted the fix/pagefind-resilience-and-base-path branch August 16, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant