Skip to content

feat: static services/index.html for correct OG preview on social crawlers#64

Merged
romahawk merged 1 commit intomainfrom
dev
Apr 30, 2026
Merged

feat: static services/index.html for correct OG preview on social crawlers#64
romahawk merged 1 commit intomainfrom
dev

Conversation

@romahawk
Copy link
Copy Markdown
Owner

Summary

  • Social crawlers (LinkedIn, Slack, Twitter/X, iMessage) don't run JS, so the previous useOgMeta.js approach never updated og:image for /services — both pages showed og-home.png
  • Added services/index.html as a second Vite build entry; dist/services/index.html is now emitted with og-services.png and services-specific title/description baked in at build time
  • vercel.json rewrites updated: old /services SPA fallback replaced with /services/(.*) catch-all pointing to the new static file
  • No bundle size change — both pages share the same JS chunks

Test plan

  • After deploy, paste https://www.mazuryk.dev/services into opengraph.xyz — should show og-services.png and services title
  • Paste https://www.mazuryk.dev/ — should still show og-home.png and home title
  • Navigate to /services in browser — page renders normally (React SPA loads from services HTML)
  • Navigate back to / — home renders normally

🤖 Generated with Claude Code

…wlers

- services/index.html: new Vite entry with og-services.png, services title/description
  baked into static HTML so crawlers see correct preview without running JS
- vite.config.js: multi-page input so dist/services/index.html is emitted at build time
- vercel.json: replace /services SPA fallback rewrites with /services/(.*) catch-all

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

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

Project Deployment Actions Updated (UTC)
portfolio-fullstack Ready Ready Preview, Comment Apr 30, 2026 8:29am
portfolio-react Ready Ready Preview, Comment Apr 30, 2026 8:29am

@romahawk romahawk merged commit 3ad7567 into main Apr 30, 2026
4 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