-
-
Notifications
You must be signed in to change notification settings - Fork 110
WIP: Remove Algolia and use Pagefind #1037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces Algolia-based search with Pagefind, a static search solution. The change eliminates the need for external search API credentials while providing built-in search functionality.
- Removes Algolia DocSearch component and dependencies
- Integrates Pagefind as a build-time search indexer
- Adds
data-pagefind-ignoreattributes to exclude blog listing pages from search results
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sites/xyflow.com/package.json | Adds pagefind dependency and integrates it into the postbuild script |
| sites/xyflow.com/.gitignore | Excludes generated pagefind index files from version control |
| sites/xyflow.com/src/app/(content-pages)/blog/page.tsx | Wraps blog listing page in data-pagefind-ignore to exclude from search |
| sites/svelteflow.dev/src/components/nextra-layout.tsx | Removes Algolia Search component from navbar |
| sites/svelteflow.dev/next.config.ts | Enables Nextra's built-in search feature and fixes formatting |
| sites/reactflow.dev/src/components/nextra-layout.tsx | Comments out search prop to re-enable default search behavior |
| sites/reactflow.dev/src/app/(content-pages)/layout.tsx | Removes Algolia Search component import and usage |
| sites/reactflow.dev/package.json | Adds pagefind dependency and integrates it into the postbuild script |
| packages/xy-shared/widgets/search/index.tsx | Completely removes the Algolia DocSearch wrapper component |
| packages/xy-shared/layouts/blog-post-base.tsx | Adds data-pagefind-ignore to blog post metadata section |
| packages/xy-shared/index.tsx | Removes search widget from package exports |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| pageMap={pageMap} | ||
| // Set to null to avoid rendering search in mobile nav, since we added search in navbar already | ||
| search={null} | ||
| // search={null} |
Copilot
AI
Nov 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commented-out code should be removed rather than left in place. If the default search behavior is now desired, simply omit the search prop entirely instead of leaving commented code.
| // search={null} |
Uh oh!
There was an error while loading. Please reload this page.