Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
superwall-docs-staging | bebda95 | Commit Preview URL Branch Preview URL |
Apr 16 2026, 02:28 AM |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bebda95. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This switches production docs search to a prebuilt static FlexSearch index while keeping the API-backed path for development. It also adds SDK tag-aware indexing, reduces the search debounce, and generates the search bundle during normal and staging Cloudflare builds. The branch includes an end-to-end browser benchmark script that measures both API-backed and static-index search behavior against a supplied URL. Validation: bun test, bun run build:cf, and a local production-preview search smoke test.
Note
Medium Risk
Touches search indexing, ranking, and build/deploy steps (including Cloudflare staging), so regressions could impact docs search availability or result quality despite being isolated from auth/data-critical paths.
Overview
Switches production docs search from an API-backed query flow to a prebuilt static FlexSearch index generated at build time, while keeping the
/api/searchendpoint for development.Adds build tooling (
scripts/generate-search-index.ts) plus a client loader/cache (static-search-client.ts) and shared scope/tag logic (search.shared.ts), and updates the search UI to support scoped filtering, faster debouncing, idle-time index preloading, and an "Ask AI" action with keyboard shortcuts. Includes a newsearch-indeximplementation with export/import + ranking/highlighting behavior and accompanying tests.Reviewed by Cursor Bugbot for commit bebda95. Bugbot is set up for automated code reviews on this repo. Configure here.