Skip to content

fix: add branded Open Graph image for link previews - #95

Merged
Divy97 merged 1 commit into
masterfrom
fix/og-image-social-preview
Oct 4, 2026
Merged

Divy97 merged 1 commit into
masterfrom
fix/og-image-social-preview

Conversation

@Divy97

@Divy97 Divy97 commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Link previews (iMessage, Slack, Twitter, etc.) were falling back to a bare favicon-only card — no og:image, metadataBase, or Twitter card metadata was configured.
  • Added app/opengraph-image.tsx (and a twitter-image.tsx re-export) that renders a branded 1200×630 image via next/og, matching the app's mark and palette.
  • Added metadataBase, openGraph, and twitter fields to the root metadata, resolving the base URL from NEXT_PUBLIC_APP_URL → VERCEL_PROJECT_PRODUCTION_URL → localhost fallback.
  • Declared VERCEL_PROJECT_PRODUCTION_URL in turbo.json's globalEnv (required by the turbo/no-undeclared-env-vars lint rule).

Test plan

  • Hit /opengraph-image and /twitter-image on a running dev server — both return 200 image/png with the branded card.
  • tsc --noEmit passes across the workspace (ran as part of pre-commit).
  • Verify the live preview on a real sharing surface (iMessage/Slack/Twitter) once deployed.

Shared links previously fell back to a bare favicon-only card with no
og:image, metadataBase, or twitter metadata configured.
@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
second-brain Ready Ready Preview Oct 4, 2026 5:16pm UTC

@Divy97
Divy97 merged commit eb29f3d into master Oct 4, 2026
5 checks passed
@Divy97
Divy97 deleted the fix/og-image-social-preview branch October 4, 2026 17:16
Divy97 pushed a commit that referenced this pull request Oct 4, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](second-brain-v0.0.1...second-brain-v0.1.0)
(2026-10-04)


### Features

* a saved note becomes ready on its own
([#19](#19))
([75b7013](75b7013))
* add Google sign-in
([#69](#69))
([1e9aab9](1e9aab9))
* **api:** browser extension API — device tokens, capture, Stored items
([#80](#80))
([3cd0506](3cd0506))
* ask and get the note back
([#20](#20))
([3fc12d5](3fc12d5))
* ask like a human: filters, conflicts, follow-ups
([#21](#21))
([26eb1fc](26eb1fc))
* **backups:** make nightly backups opt-in and prune old ones
([#62](#62))
([f4ed822](f4ed822))
* **backups:** run nightly exports
([27e355d](27e355d))
* browser extension and its web management surface
([#81](#81))
([68dd17b](68dd17b))
* **capture:** add article links
([f2498e0](f2498e0))
* **capture:** add voice notes and audio files
([#44](#44))
([03bfadc](03bfadc))
* **capture:** save Instagram links with their captions
([#52](#52))
([31b632b](31b632b)),
closes [#41](#41)
* **capture:** save YouTube links with metadata and transcripts
([#51](#51))
([849afdf](849afdf)),
closes [#40](#40)
* **capture:** support PDF uploads
([f7216e4](f7216e4))
* **capture:** unify five cards into one tabbed composer
([#48](#48))
([f001240](f001240))
* connect the browser extension by pasting a device key
([#83](#83))
([9c16242](9c16242)),
closes [#82](#82)
* **facts:** index own-word facts
([7b7ed59](7b7ed59))
* initial commit
([34b4f01](34b4f01))
* **keys:** manage optional transcript and reader keys
([#49](#49))
([a514fd8](a514fd8)),
closes [#42](#42)
* run transcript and reader on operator keys with a daily allowance
([#72](#72))
([cb281e4](cb281e4))
* save a note and see it
([#18](#18))
([8ab7fe7](8ab7fe7))
* show the browser extension on the homepage
([#87](#87))
([e6a98cf](e6a98cf))
* sign up, sign in, add your OpenRouter key
([#17](#17))
([47c0e6b](47c0e6b))
* **ui:** replace app with single warm theme
([#30](#30))
([cd8f30f](cd8f30f))
* walking skeleton with api, db and ai packages
([#12](#12))
([efb66e7](efb66e7))
* **web:** refresh marketing and stabilize loading UX
([#73](#73))
([48d9bcd](48d9bcd))
* **web:** serve the API same-origin through a rewrite
([#68](#68))
([d676e46](d676e46))
* **web:** spotlight saved videos and polish marketing
([#74](#74))
([964968a](964968a))
* **web:** support photo capture
([b159fd3](b159fd3))


### Bug Fixes

* add branded Open Graph image for link previews
([#95](#95))
([eb29f3d](eb29f3d))
* clarify hero headline—'Save anything. Then just ask.'
([#77](#77))
([1766a3b](1766a3b))
* **db:** cap postgres clients
([0348ab3](0348ab3))
* describe automatic capture as real, redesign the roadmap section
([#88](#88))
([f059285](f059285))
* make the extension actually save pages, and match the site's design
([#84](#84))
([ef710d6](ef710d6))
* migrate references from old Vercel domain to usesecondbrain.vercel.app
([#96](#96))
([c8ef05e](c8ef05e))
* reposition and redesign the roadmap section
([#89](#89))
([a240723](a240723))
* **ui:** align responsive layout and clarify forms
([#32](#32))
([00c0f6f](00c0f6f))
* **ui:** keep thread replies within reach
([#34](#34))
([26d700c](26d700c))
* use a real contact email on the privacy policy page
([#86](#86))
([916abfd](916abfd))
* **web:** keep mobile menu above marketing hero
([#75](#75))
([7eda9cc](7eda9cc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — 24cb95b0 Deployed Oct 4, 2026 by vercel[bot]
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