Skip to content

fix(docs): use static search#272

Merged
sadmann7 merged 1 commit intomainfrom
sadman/search-prod
Apr 2, 2026
Merged

fix(docs): use static search#272
sadmann7 merged 1 commit intomainfrom
sadman/search-prod

Conversation

@sadmann7
Copy link
Copy Markdown
Owner

@sadmann7 sadmann7 commented Apr 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 11:10
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 2, 2026

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

Project Deployment Actions Updated (UTC)
diceui Ready Ready Preview, Comment Apr 2, 2026 11:10am

Request Review

Copy link
Copy Markdown
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

Updates the docs site search implementation to use Fumadocs’ static search mode, aligning the client dialog configuration with a statically cacheable /api/search route.

Changes:

  • Switch useDocsSearch in the docs search dialog from "fetch" to "static".
  • Update the search API route to export staticGET as GET and mark the route as non-revalidating (revalidate = false).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/components/doc-search-dialog.tsx Configures the client-side search dialog to use static search mode.
docs/app/api/search/route.ts Serves the search endpoint via staticGET and disables revalidation for static caching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sadmann7 sadmann7 merged commit 7d3f444 into main Apr 2, 2026
12 checks passed
@sadmann7 sadmann7 deleted the sadman/search-prod branch April 2, 2026 11:14
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