Skip to content

Update social previews to TypeScript/JavaScript - #11

Merged
proggeramlug merged 1 commit into
mainfrom
fix/social-preview-languages
Oct 28, 2026
Merged

proggeramlug merged 1 commit into
mainfrom
fix/social-preview-languages

Conversation

@proggeramlug

@proggeramlug proggeramlug commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Social previews now read “Your TypeScript/JavaScript, compiled to native.” The shared PNG and SVG banner name both languages, and Open Graph/Twitter titles and descriptions use the requested TypeScript/JavaScript order. The default image includes descriptive alt text, matching dimensions, and a versioned URL.

Beta builds now fetch social images from beta.perryts.com instead of the older production image. Blog structured data uses the same image URL, while canonical URLs stay on production. Production builds retain their default image origin.

Validation: Astro check passed with zero errors or warnings; the 600-page build and full multilingual blog checks passed. Inspected the generated image and verified social titles, image URLs, image dimensions, and canonical URLs on all 13 localized homepages. Workflow lint and deployment shell syntax checks passed.

Summary by CodeRabbit

  • Improvements
    • Social-preview images on Beta builds now use the Beta site’s origin; builds without this override continue to use the production origin.
    • Open Graph and Twitter previews now use updated title and description wording, revised image dimensions, and alternative text for the default image.
    • Blog post structured data now uses the same social-preview image URL as other page metadata.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

Social image URLs now use a shared SEO helper that resolves against SOCIAL_IMAGE_ORIGIN when set, or the site URL otherwise. Beta builds set the variable to the Beta origin. Social metadata uses updated titles, descriptions, dimensions, and default-image alt text; blog structured data uses the resolved image URL.

Changes: Social image metadata

Layer / File(s) Summary
Social image URL configuration
src/lib/seo.ts, deploy-beta.sh, .github/workflows/deploy-beta.yml, README.md
The SEO module adds the default social image and a helper that resolves its URL against SOCIAL_IMAGE_ORIGIN or the site URL. Beta build commands set the origin to https://beta.perryts.com, and the README documents the behavior.
Social metadata and structured data
src/layouts/Base.astro, src/pages/[lang]/blog/[slug]/index.astro
The base layout uses the shared image and URL helper for social metadata. Social titles and descriptions use “TypeScript/JavaScript,” dimensions change to 1731×909, and default-image alt tags are added. BlogPosting structured data uses the helper-generated image URL.

Priority: Not assessed

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant BetaBuild
  participant AstroRendering
  participant socialImageUrl
  participant SocialTags
  participant BlogPosting
  BetaBuild->>AstroRendering: sets SOCIAL_IMAGE_ORIGIN
  AstroRendering->>socialImageUrl: passes image and Astro.site
  socialImageUrl-->>AstroRendering: returns resolved image URL
  AstroRendering->>SocialTags: sets Open Graph and Twitter image metadata
  AstroRendering->>socialImageUrl: passes default image and Astro.site
  socialImageUrl-->>AstroRendering: returns resolved image URL
  AstroRendering->>BlogPosting: sets structured-data image
Loading

Suggested reviewers: thehypnoo

Merge Risk: Low · up to 612e1

Beta social cards may lack an image for crawlers that follow robots.txt. The change is otherwise mergeable with awareness of this limitation.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@proggeramlug
proggeramlug merged commit 8162241 into main Oct 28, 2026
1 of 2 checks passed
@TheHypnoo
TheHypnoo deleted the fix/social-preview-languages branch October 30, 2026 14:34
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