Skip to content

fix(share): static OG dispatcher (restore proof unfurls)#13

Merged
Pratiikpy merged 1 commit into
mainfrom
arb-sepolia-support
Jun 13, 2026
Merged

fix(share): static OG dispatcher (restore proof unfurls)#13
Pratiikpy merged 1 commit into
mainfrom
arb-sepolia-support

Conversation

@Pratiikpy

Copy link
Copy Markdown
Owner

Hotfix: the dynamic api/share/[kind].ts route from #12 was shadowed by the catch-all rewrite and never reached, breaking proof unfurls live (/v/:proofId served the SPA shell). Move the OG dispatcher back to the static /api/share/proof path (matched before rewrites, like /api/health). Resource-link rewrites now target /api/share/proof?kind=link. 12 functions, 60 share tests green, api typecheck clean.

…oute

The dynamic api/share/[kind].ts route was shadowed by the catch-all
rewrite (/(.*) -> /index.html) and never reached, which broke proof
unfurls live (/v/:proofId returned the SPA shell). Static API files are
matched in the filesystem phase, before rewrites, so the OG dispatcher
moves back to the static api/share/proof.ts path. Resource-link rewrites
now target /api/share/proof?kind=link; /v/:proofId stays kind=proof.
@vercel

vercel Bot commented Jun 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
blank Ready Ready Preview, Comment Jun 13, 2026 4:22pm

@Pratiikpy
Pratiikpy merged commit a6e839d into main Jun 13, 2026
5 checks passed
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