Skip to content

fix(search): load Pagefind from same-origin base path - #489

Merged
ilteoood merged 2 commits into
fastify:mainfrom
Puppo:triage-broken-search
Aug 19, 2026
Merged

fix(search): load Pagefind from same-origin base path#489
ilteoood merged 2 commits into
fastify:mainfrom
Puppo:triage-broken-search

Conversation

@Puppo

@Puppo Puppo commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • load Pagefind through the configured base path so root deployments request /pagefind/pagefind.js
  • reset and report failed Pagefind initialization
  • correct the documented production build command

Testing

  • npm run lint
  • npm run check
  • Astro/Vite static build completed and emitted /pagefind/pagefind.js with no //pagefind/pagefind.js

Pagefind's bundled ARM64 indexer cannot run in this 16 KB-page container (jemalloc: Unsupported system page size), so the full production build could not complete locally.

@Puppo
Puppo marked this pull request as ready for review August 19, 2026 18:43
@ilteoood
ilteoood merged commit b097378 into fastify:main Aug 19, 2026
1 of 2 checks passed
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.

2 participants