Skip to content

fix: stop prerendering /api/search to avoid Cloudflare 25 MiB asset limit#98

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ci-issues-main-branch
Closed

fix: stop prerendering /api/search to avoid Cloudflare 25 MiB asset limit#98
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ci-issues-main-branch

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

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 the tanstackStart config in vite.config.ts:

-    tanstackStart({
-      pages: [{ path: "/api/search" }],
-      prerender: {
+    tanstackStart({
+      prerender: {

The route keeps its server.handlers.GET handler 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

Job Error
website / deployment wrangler deploy rejects the 25 MiB static file
e2e / e2e wrangler dev webServer exits with [ERROR] Asset too large
test / unit same wrangler dev failure, hidden by stderr: "ignore" → "Server not ready after 30s"

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

@kamilkisiela
Copy link
Copy Markdown
Contributor

#100

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.

3 participants