Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Summary

Adds Vercel rewrite rule to detect social media crawlers (Twitter, Facebook, LinkedIn, Slack, Discord, Telegram, WhatsApp) and serve them the OG API response with proper meta tags instead of the SPA.

This enables proper social previews for blog posts with correct title, description, and cover image.

Test plan

  • Verify Twitter Card Validator shows correct preview
  • Verify Facebook Debugger shows correct preview
  • Verify LinkedIn Post Inspector shows correct preview
  • Verify normal users still see the SPA

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Nov 26, 2025

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

Project Deployment Preview Comments Updated (UTC)
policyengine-app-v2 Ready Ready Preview Comment Nov 26, 2025 3:00am

Adds Vercel rewrite rule to detect Twitter, Facebook, LinkedIn, Slack,
Discord, Telegram, and WhatsApp crawlers and serve them the OG API
response with proper meta tags instead of the SPA.

Includes tests that verify:
- Crawler routing rule exists and comes before SPA fallback
- All major social platforms are included in user-agent pattern

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@MaxGhenis MaxGhenis force-pushed the fix-og-crawler-routing branch from d439085 to feaea01 Compare November 26, 2025 02:59
@MaxGhenis MaxGhenis marked this pull request as ready for review November 26, 2025 09:40
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.

2 participants