Skip to content

feat(web): add Open Graph and Twitter link previews#68

Merged
RISHII7 merged 1 commit into
developfrom
feat/web-open-graph-metadata
Jul 9, 2026
Merged

feat(web): add Open Graph and Twitter link previews#68
RISHII7 merged 1 commit into
developfrom
feat/web-open-graph-metadata

Conversation

@RISHII7

@RISHII7 RISHII7 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Shared links to the web app previewed as "404: This page could not be found" because the root URL redirects into the auth-gated dashboard, so crawlers (LinkedIn, X, Slack, etc.) never saw real metadata.

This adds proper social-share previews:

  • metadataBase + openGraph + twitter metadata on the root layout.
  • A branded 1200×630 preview card generated at build/request time via next/og (opengraph-image.tsx, re-exported as twitter-image.tsx) — no static asset to maintain.
  • /opengraph-image and /twitter-image marked public in proxy.ts so crawlers can fetch the image without authentication.

Public pages (e.g. /sign-in) now render a polished card with the Echo brand, tagline, and tech stack.

Notes

Because the whole app is auth-gated, the recommended shareable link for social posts is a public page such as /sign-in (the bare domain still redirects into the dashboard). A dedicated public landing page could make the bare domain preview too — happy to follow up if wanted.

Verification

  • pnpm --filter web lint — pass
  • pnpm --filter web typecheck — pass
  • pnpm --filter web build — pass (/opengraph-image + /twitter-image compile as static routes)

Shared links to the web app previewed as "404: This page could not be
found" because the root redirects into the auth-gated dashboard, so
crawlers never saw real metadata.

- Add metadataBase, openGraph, and twitter metadata to the root layout
- Generate a branded 1200x630 preview card via next/og
  (opengraph-image.tsx, re-exported as twitter-image.tsx) — no static
  asset to maintain
- Make /opengraph-image and /twitter-image public in proxy.ts so
  crawlers can fetch the image without authentication

Public pages (e.g. /sign-in) now render a proper social card.
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
echo Ready Ready Preview, Comment Jul 9, 2026 7:31am
echo-widget Ready Ready Preview, Comment Jul 9, 2026 7:31am

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 65c68672-fd01-4cbf-a051-75cece20b97f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/web-open-graph-metadata

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RISHII7
RISHII7 merged commit 4abb00f into develop Jul 9, 2026
11 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