Skip to content

Conversation

@0x0f0f0f
Copy link
Contributor

@0x0f0f0f 0x0f0f0f commented Oct 6, 2025

  • Enable for svelte flow

@vercel
Copy link

vercel bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-apps Ready Ready Preview Comment Nov 20, 2025 2:00pm
reactflow-website Ready Ready Preview Comment Nov 20, 2025 2:00pm
svelteflow-website Error Error Nov 20, 2025 2:00pm
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
ui-components Ignored Ignored Preview Nov 20, 2025 2:00pm
xyflow-website Ignored Ignored Preview Nov 20, 2025 2:00pm

Copy link
Contributor

Copilot AI left a 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-ignore attributes 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}
Copy link

Copilot AI Nov 19, 2025

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.

Suggested change
// search={null}

Copilot uses AI. Check for mistakes.
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