Skip to content

Skip detail page SSR for HEAD requests#1318

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3848-cursor-automated-triage-response-67b6
Draft

Skip detail page SSR for HEAD requests#1318
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/OUT-3848-cursor-automated-triage-response-67b6

Conversation

@cursor

@cursor cursor Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add a Next 16 src/proxy.ts guard for /detail/:path* that returns a no-store 200 for HEAD requests before the task detail page runs SSR loaders.
  • Keep normal GET navigation flowing through to the existing detail page.
  • Add focused unit coverage for the matcher, HEAD short-circuit, and GET pass-through behavior.

Testing Criteria

  • yarn test src/proxy.test.ts - validates matcher scope plus HEAD/GET behavior.
  • yarn lint:check -- src/proxy.ts src/proxy.test.ts - completed with existing repo warnings only, no errors.
  • yarn tsc - attempted; blocked by existing unrelated SVG module declaration errors in src/icons/index.ts.
  • Runtime check with yarn dev and curl -I against /detail/9474a765-95dc-445f-aaca-7f950acdbdce/iu?token=test-token returned 200 with cache-control: no-store, and the dev server logged no page-render errors for that HEAD request.

Notes

  • Linear/Sentry triage: OUT-3848 links to Sentry TASKS-94 in the tasks project.
  • Sentry aggregates show all 91 PrismaClientKnownRequestError events in the last 14 days are on HEAD /detail/[task_id]/[user_type], across 6 Sentry groups. TASKS-94 specifically failed in SubtaskService.getSubtaskCounts with Can't reach database server at aws-0-us-east-1.pooler.supabase.com:6543.

Impact & Surface Area of Change

  • Only HEAD requests matching /detail/:path* are short-circuited.
  • GET/POST/API traffic is not matched or changed.
  • This reduces unnecessary database pressure from HEAD probes without changing the interactive task-detail page render path.
Open in Web View Automation 

cursoragent and others added 2 commits June 12, 2026 18:40
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
Co-authored-by: Neil Raina <makeitraina@users.noreply.github.com>
@linear-code

linear-code Bot commented Jun 12, 2026

Copy link
Copy Markdown

OUT-3848

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment Jun 12, 2026 7:25pm

Request Review

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.

1 participant