Payload
{
"action": "edited",
"changes": {
"body": {
"from": "[vc]: #ZTd3Aq98RMUf2QLDCuV5k3qvAO4K0bY+Nl8RnW/PW/4=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJibG9nIiwicHJvamVjdElkIjoicHJqXzZMQ293b0xJck95NWdiRXN3UU9jMVFiSDl5dHoiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoiIn0sImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9kYXJrbWF0dGVybGFicy9ibG9nL0VlTm5nRkhoc3BFUUxFWFlWazZqMk5ubm5xdXciLCJwcmV2aWV3VXJsIjoiIiwibmV4dENvbW1pdFN0YXR1cyI6IkZBSUxFRCJ9XSwicmVxdWVzdFJldmlld1VybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92ZXJjZWwtYWdlbnQvcmVxdWVzdC1yZXZpZXc/b3duZXI9Y3p4dG0mcmVwbz1ibG9nJnByPTMifQ==\nThe latest updates on your projects. Learn more about [Vercel for GitHub](https://vercel.link/github-learn-more).\n\n| Project | Deployment | Actions | Updated (UTC) |\n| :--- | :----- | :------ | :------ |\n| [blog](https://vercel.com/darkmatterlabs/blog) |  [Error](https://vercel.com/darkmatterlabs/blog/EeNngFHhspEQLEXYVk6j2Nnnnquw) | | Jun 7, 2026 7:24am |\n\n<a href=\"https://vercel.com/vercel-agent/request-review?owner=czxtm&repo=blog&pr=3\" rel=\"noreferrer\"><picture><source media=\"(prefers-color-scheme: dark)\" srcset=\"https://agents-vade-review.vercel.sh/request-review-dark.svg\"><source media=\"(prefers-color-scheme: light)\" srcset=\"https://agents-vade-review.vercel.sh/request-review-light.svg\"><img src=\"https://agents-vade-review.vercel.sh/request-review-light.svg\" alt=\"Request Review\"></picture></a>\n\n"
}
},
"issue": {
"url": "https://api.github.com/repos/czxtm/blog/issues/3",
"repository_url": "https://api.github.com/repos/czxtm/blog",
"labels_url": "https://api.github.com/repos/czxtm/blog/issues/3/labels{/name}",
"comments_url": "https://api.github.com/repos/czxtm/blog/issues/3/comments",
"events_url": "https://api.github.com/repos/czxtm/blog/issues/3/events",
"html_url": "https://github.com/czxtm/blog/pull/3",
"id": 4606539480,
"node_id": "PR_kwDOPn_Ekc7jlckE",
"number": 3,
"title": "feat: add newsletter subscription with Resend email",
"user": {
"login": "czxtm",
"id": 1325802,
"node_id": "MDQ6VXNlcjEzMjU4MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1325802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/czxtm",
"html_url": "https://github.com/czxtm",
"followers_url": "https://api.github.com/users/czxtm/followers",
"following_url": "https://api.github.com/users/czxtm/following{/other_user}",
"gists_url": "https://api.github.com/users/czxtm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/czxtm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/czxtm/subscriptions",
"organizations_url": "https://api.github.com/users/czxtm/orgs",
"repos_url": "https://api.github.com/users/czxtm/repos",
"events_url": "https://api.github.com/users/czxtm/events{/privacy}",
"received_events_url": "https://api.github.com/users/czxtm/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"labels": [],
"state": "open",
"locked": false,
"assignees": [],
"milestone": null,
"comments": 1,
"created_at": "2026-06-07T07:24:23Z",
"updated_at": "2026-06-09T12:49:58Z",
"closed_at": null,
"assignee": null,
"author_association": "OWNER",
"active_lock_reason": null,
"draft": false,
"pull_request": {
"url": "https://api.github.com/repos/czxtm/blog/pulls/3",
"html_url": "https://github.com/czxtm/blog/pull/3",
"diff_url": "https://github.com/czxtm/blog/pull/3.diff",
"patch_url": "https://github.com/czxtm/blog/pull/3.patch",
"merged_at": null
},
"body": "Add newsletter subscription with Resend email confirmation.\n\n### Backend\n\n- **`collections/Subscribers.ts`** — new Payload collection with `email` field (unique), public create access, admin-only read/update/delete, `afterChange` hook that sends a welcome email via `req.payload.sendEmail`, and a custom `POST /api/subscribers/subscribe` endpoint with duplicate detection\n- **`payload.config.ts`** — registered `Subscribers` collection, added `resendAdapter` email config (`@payloadcms/email-resend`)\n- **`alchemy.run.ts`** — added `RESEND_API_KEY` as a Worker env var (sourced from `process.env.RESEND_API_KEY`, same pattern as `PAYLOAD_SECRET`)\n\n### Frontend\n\n- **`components/newsletter-form.tsx`** — client component with email input + subscribe button, handles idle/submitting/success/error states, matches existing zinc color palette and rounded-pill button style\n- **`app/(frontend)/home-view.tsx`** — added `NewsletterForm` to the Connect section with \"Get notified when I publish new posts.\" label\n\n### Migration\n\nPayload auto-generated migration `20260607_071920_add_subscribers` — creates `subscribers` table with unique email index. Payload runs migrations at runtime on Cloudflare Workers via its own `payload_migrations` table, so no Alchemy `migrationsDir` needed.\n\n### Before deploying\n\n1. Add `RESEND_API_KEY` to himitsu/SOPS secrets (I couldn't decrypt `ops/secrets.sops.yaml` — the himitsu age key isn't accessible to sops on this machine)\n2. Run `bunx payload migrate` locally or let Payload handle it at runtime on deploy\n3. Verify Resend domain is configured for `contact@cooperm.com`\n",
"reactions": {
"url": "https://api.github.com/repos/czxtm/blog/issues/3/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"timeline_url": "https://api.github.com/repos/czxtm/blog/issues/3/timeline",
"performed_via_github_app": null,
"state_reason": null
},
"comment": {
"url": "https://api.github.com/repos/czxtm/blog/issues/comments/4641778811",
"html_url": "https://github.com/czxtm/blog/pull/3#issuecomment-4641778811",
"issue_url": "https://api.github.com/repos/czxtm/blog/issues/3",
"id": 4641778811,
"node_id": "IC_kwDOPn_Ekc8AAAABFKvsew",
"user": {
"login": "vercel[bot]",
"id": 35613825,
"node_id": "MDM6Qm90MzU2MTM4MjU=",
"avatar_url": "https://avatars.githubusercontent.com/in/8329?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vercel%5Bbot%5D",
"html_url": "https://github.com/apps/vercel",
"followers_url": "https://api.github.com/users/vercel%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/vercel%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/vercel%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vercel%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vercel%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/vercel%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/vercel%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/vercel%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/vercel%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"created_at": "2026-06-07T07:24:29Z",
"updated_at": "2026-06-09T12:50:01Z",
"body": "[vc]: #faGjVsiv7IJgoZQnulV9ED+XucJVtM6VQ//3G2NhlGk=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJibG9nIiwicHJvamVjdElkIjoicHJqXzZMQ293b0xJck95NWdiRXN3UU9jMVFiSDl5dHoiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoiYmxvZy1naXQtZmVhdC1uZXdzbGV0dGVyLXN1YnNjcmliZS1kYXJrbWF0dGVybGFicy52ZXJjZWwuYXBwIn0sImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9kYXJrbWF0dGVybGFicy9ibG9nLzdoRFJEUVZ6eUF6d1ppQnZnTUJXUzdCalVVbnAiLCJwcmV2aWV3VXJsIjoiYmxvZy1naXQtZmVhdC1uZXdzbGV0dGVyLXN1YnNjcmliZS1kYXJrbWF0dGVybGFicy52ZXJjZWwuYXBwIiwibmV4dENvbW1pdFN0YXR1cyI6IlBFTkRJTkciLCJyb290RGlyZWN0b3J5IjpudWxsfV0sInJlcXVlc3RSZXZpZXdVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vdmVyY2VsLWFnZW50L3JlcXVlc3QtcmV2aWV3P293bmVyPWN6eHRtJnJlcG89YmxvZyZwcj0zIn0=\nThe latest updates on your projects. Learn more about [Vercel for GitHub](https://vercel.link/github-learn-more).\n\n| Project | Deployment | Actions | Updated (UTC) |\n| :--- | :----- | :------ | :------ |\n| [blog](https://vercel.com/darkmatterlabs/blog) |  [Building](https://vercel.com/darkmatterlabs/blog/7hDRDQVzyAzwZiBvgMBWS7BjUUnp) | [Preview](https://blog-git-feat-newsletter-subscribe-darkmatterlabs.vercel.app), [Comment](https://vercel.live/open-feedback/blog-git-feat-newsletter-subscribe-darkmatterlabs.vercel.app?via=pr-comment-feedback-link) | Jun 9, 2026 12:50pm |\n\n<a href=\"https://vercel.com/vercel-agent/request-review?owner=czxtm&repo=blog&pr=3\" rel=\"noreferrer\"><picture><source media=\"(prefers-color-scheme: dark)\" srcset=\"https://agents-vade-review.vercel.sh/request-review-dark.svg\"><source media=\"(prefers-color-scheme: light)\" srcset=\"https://agents-vade-review.vercel.sh/request-review-light.svg\"><img src=\"https://agents-vade-review.vercel.sh/request-review-light.svg\" alt=\"Request Review\"></picture></a>\n\n",
"author_association": "NONE",
"reactions": {
"url": "https://api.github.com/repos/czxtm/blog/issues/comments/4641778811/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
},
"performed_via_github_app": {
"id": 8329,
"client_id": "Iv1.9d7d662ea00b8481",
"slug": "vercel",
"node_id": "MDM6QXBwODMyOQ==",
"owner": {
"login": "vercel",
"id": 14985020,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE0OTg1MDIw",
"avatar_url": "https://avatars.githubusercontent.com/u/14985020?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vercel",
"html_url": "https://github.com/vercel",
"followers_url": "https://api.github.com/users/vercel/followers",
"following_url": "https://api.github.com/users/vercel/following{/other_user}",
"gists_url": "https://api.github.com/users/vercel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vercel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vercel/subscriptions",
"organizations_url": "https://api.github.com/users/vercel/orgs",
"repos_url": "https://api.github.com/users/vercel/repos",
"events_url": "https://api.github.com/users/vercel/events{/privacy}",
"received_events_url": "https://api.github.com/users/vercel/received_events",
"type": "Organization",
"user_view_type": "public",
"site_admin": false
},
"name": "Vercel",
"description": "Vercel for GitHub automatically deploys your PRs to Vercel.\r\nPreview every PR live, without any configuration required.\r\n\r\nFor more information, see our [documentation](https://vercel.com/docs/github?utm_source=github&utm_medium=marketplace&utm_campaign=vercel-app).\r\n\r\n",
"external_url": "https://vercel.com/github",
"html_url": "https://github.com/apps/vercel",
"created_at": "2018-01-19T21:51:06Z",
"updated_at": "2026-04-20T23:42:30Z",
"permissions": {
"actions": "read",
"administration": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"emails": "read",
"issues": "write",
"members": "read",
"metadata": "read",
"pull_requests": "write",
"repository_hooks": "write",
"statuses": "write",
"workflows": "write"
},
"events": [
"branch_protection_rule",
"check_run",
"delete",
"deployment",
"issue_comment",
"membership",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"pull_request_review_thread",
"push",
"repository",
"status",
"team"
]
}
},
"repository": {
"id": 1048560785,
"node_id": "R_kgDOPn_EkQ",
"name": "blog",
"full_name": "czxtm/blog",
"private": true,
"owner": {
"login": "czxtm",
"id": 1325802,
"node_id": "MDQ6VXNlcjEzMjU4MDI=",
"avatar_url": "https://avatars.githubusercontent.com/u/1325802?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/czxtm",
"html_url": "https://github.com/czxtm",
"followers_url": "https://api.github.com/users/czxtm/followers",
"following_url": "https://api.github.com/users/czxtm/following{/other_user}",
"gists_url": "https://api.github.com/users/czxtm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/czxtm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/czxtm/subscriptions",
"organizations_url": "https://api.github.com/users/czxtm/orgs",
"repos_url": "https://api.github.com/users/czxtm/repos",
"events_url": "https://api.github.com/users/czxtm/events{/privacy}",
"received_events_url": "https://api.github.com/users/czxtm/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"html_url": "https://github.com/czxtm/blog",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/czxtm/blog",
"forks_url": "https://api.github.com/repos/czxtm/blog/forks",
"keys_url": "https://api.github.com/repos/czxtm/blog/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/czxtm/blog/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/czxtm/blog/teams",
"hooks_url": "https://api.github.com/repos/czxtm/blog/hooks",
"issue_events_url": "https://api.github.com/repos/czxtm/blog/issues/events{/number}",
"events_url": "https://api.github.com/repos/czxtm/blog/events",
"assignees_url": "https://api.github.com/repos/czxtm/blog/assignees{/user}",
"branches_url": "https://api.github.com/repos/czxtm/blog/branches{/branch}",
"tags_url": "https://api.github.com/repos/czxtm/blog/tags",
"blobs_url": "https://api.github.com/repos/czxtm/blog/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/czxtm/blog/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/czxtm/blog/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/czxtm/blog/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/czxtm/blog/statuses/{sha}",
"languages_url": "https://api.github.com/repos/czxtm/blog/languages",
"stargazers_url": "https://api.github.com/repos/czxtm/blog/stargazers",
"contributors_url": "https://api.github.com/repos/czxtm/blog/contributors",
"subscribers_url": "https://api.github.com/repos/czxtm/blog/subscribers",
"subscription_url": "https://api.github.com/repos/czxtm/blog/subscription",
"commits_url": "https://api.github.com/repos/czxtm/blog/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/czxtm/blog/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/czxtm/blog/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/czxtm/blog/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/czxtm/blog/contents/{+path}",
"compare_url": "https://api.github.com/repos/czxtm/blog/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/czxtm/blog/merges",
"archive_url": "https://api.github.com/repos/czxtm/blog/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/czxtm/blog/downloads",
"issues_url": "https://api.github.com/repos/czxtm/blog/issues{/number}",
"pulls_url": "https://api.github.com/repos/czxtm/blog/pulls{/number}",
"milestones_url": "https://api.github.com/repos/czxtm/blog/milestones{/number}",
"notifications_url": "https://api.github.com/repos/czxtm/blog/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/czxtm/blog/labels{/name}",
"releases_url": "https://api.github.com/repos/czxtm/blog/releases{/id}",
"deployments_url": "https://api.github.com/repos/czxtm/blog/deployments",
"created_at": "2025-09-01T16:31:54Z",
"updated_at": "2026-05-27T03:24:17Z",
"pushed_at": "2026-06-09T12:49:56Z",
"git_url": "git://github.com/czxtm/blog.git",
"ssh_url": "git@github.com:czxtm/blog.git",
"clone_url": "https://github.com/czxtm/blog.git",
"svn_url": "https://github.com/czxtm/blog",
"homepage": "https://blog-drkmttr.vercel.app",
"size": 11593,
"stargazers_count": 0,
"watchers_count": 0,
"language": "TypeScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"has_discussions": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 1,
"license": null,
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"has_pull_requests": true,
"pull_request_creation_policy": "all",
"topics": [],
"visibility": "private",
"forks": 0,
"open_issues": 1,
"watchers": 0,
"default_branch": "main"
},
"sender": {
"login": "vercel[bot]",
"id": 35613825,
"node_id": "MDM6Qm90MzU2MTM4MjU=",
"avatar_url": "https://avatars.githubusercontent.com/in/8329?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vercel%5Bbot%5D",
"html_url": "https://github.com/apps/vercel",
"followers_url": "https://api.github.com/users/vercel%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/vercel%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/vercel%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vercel%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vercel%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/vercel%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/vercel%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/vercel%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/vercel%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
},
"installation": {
"id": 131073850,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMxMDczODUw"
}
}