-
Notifications
You must be signed in to change notification settings - Fork 3
Fix search indexing configuration (ENG-791) #2059
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
Conversation
…NG-791) Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
📦 Next.js Bundle Analysis for doThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
… indexing (ENG-791) Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
…ndexing (ENG-791) Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
…G-791) Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
…ts (ENG-791) Co-Authored-By: Nathan Clevenger <nateclev@gmail.com>
|
Closing due to inactivity for more than 7 days. |
|
Devin is archived and cannot be woken up. Please unarchive Devin if you want to continue using it. |
Fix search indexing configuration (ENG-791)
Changes
--glob "**/*.html"to target all HTML files--exclude-selectors "nav, footer, [data-nextra-hide]"to exclude navigation elements--force-language "en"to ensure proper language detectionProblem
The docs site's search was only indexing a tiny fraction of content (3 pages, 11 words) despite having 109 MDX files available.
Approach
The key issue was that Next.js wasn't generating enough static HTML files for Pagefind to index. Our solution:
output: 'export'in next.config.mjs to generate HTML files for all routesThese changes should ensure Pagefind properly indexes all relevant content by targeting the static HTML files generated during the build process.
Testing
Link to Devin run: https://app.devin.ai/sessions/938cae89a83f4f18a9f44c05229b6d64
User: Nathan Clevenger (nateclev@gmail.com)