fix: stop prerendering /api/search to avoid Cloudflare 25 MiB asset limit#98
Closed
Copilot wants to merge 1 commit into
Closed
fix: stop prerendering /api/search to avoid Cloudflare 25 MiB asset limit#98Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
Agent-Logs-Url: https://github.com/graphql-hive/docs/sessions/7b0ed3b9-cb9d-47f7-9d80-91823db95797 Co-authored-by: ardatan <20847995+ardatan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ardatan
April 27, 2026 13:39
View session
|
Contributor
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.
The search index has grown to exactly 25 MiB, hitting Cloudflare Workers' hard per-asset size limit and breaking deployment, e2e, and unit tests across the board.
Change
Remove
pages: [{ path: "/api/search" }]from thetanstackStartconfig invite.config.ts:The route keeps its
server.handlers.GEThandler and is served dynamically by the Cloudflare Worker. The search index data is already bundled into the worker via virtual modules at build time, so there is no runtime overhead — the static asset simply won't be emitted anymore.Failures fixed
website / deploymentwrangler deployrejects the 25 MiB static filee2e / e2ewrangler devwebServer exits with[ERROR] Asset too largetest / unitwrangler devfailure, hidden bystderr: "ignore"→ "Server not ready after 30s"