Skip to content

OG Image Fix - #30

Merged
mrbubbles-src merged 3 commits into
mainfrom
dev
Feb 6, 2026
Merged

OG Image Fix#30
mrbubbles-src merged 3 commits into
mainfrom
dev

Conversation

@mrbubbles-src

Copy link
Copy Markdown
Owner

This pull request updates how metadata and Open Graph (OG) images are handled across the app, focusing on ensuring absolute URLs are used for social image tags and switching to a new SVG logo for OG images. It also sets production as the default site URL and updates documentation and tests to reflect these changes.

Metadata and URL handling improvements:

  • The default site URL is now set to the production value (https://teacherbuddy.mrbubbles-src.dev), and all metadata URLs (including OG and Twitter images) are generated as absolute URLs using the new buildAbsoluteMetadataUrl utility. This ensures social crawlers can reliably fetch images and canonical URLs. [1] [2] [3] [4] [5] [6]
  • Tests in lib/__tests__/metadata.test.ts are updated to expect absolute production URLs in metadata fields and for the fallback site URL. [1] [2] [3]

Open Graph image updates:

  • The OG image renderer in lib/og-image.tsx now returns an SVG logo instead of a styled PNG, and the alt text is updated to "TeacherBuddy Logo". The content type is changed to image/svg+xml. [1] [2]

Documentation updates:

  • Documentation clarifies that OG image endpoints and API routes are optional and that social image tags use absolute URLs derived from metadataBase. [1] [2]

Environment variable changes:

  • The .env.example file is simplified to clarify that NEXT_PUBLIC_SITE_URL should be set in production, and is now left blank for local development.

- Changed the Open Graph image endpoint to use a generated route (`/api/og`) instead of a static asset.
- Updated environment variables in `.env.example` for clarity and production readiness.
- Adjusted metadata handling in `lib/metadata.ts` to reflect the new OG image path and production URL.
- Added a new SVG logo asset for the Open Graph image.
- Enhanced tests to verify the new metadata behavior and ensure proper URL resolution.
@vercel

vercel Bot commented Feb 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
teacherbuddy Canceled Canceled Feb 6, 2026 1:09am

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@mrbubbles-src
mrbubbles-src merged commit a580b4d into main Feb 6, 2026
5 of 6 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