Repository navigation
fix: respect user-provided twitter:card in InferSeoMetaPlugin - #681
Conversation
Make twitter:card push conditional so that `twitterCard: false` option properly suppresses output. User-provided values already take precedence via `tagPriority: 'low'` on the plugin entry. Adds regression tests for both override scenarios. Closes #555
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds conditional logic to the InferSeoMetaPlugin to allow users to override or disable the Twitter card meta tag, rather than unconditionally applying the default 'summary_large_image' value. Includes tests validating override and disable scenarios. Changes
Poem
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
Bundle Size Analysis
|
🔗 Linked issue
Resolves #555
❓ Type of change
📚 Description
The
InferSeoMetaPluginused||to fall back to'summary_large_image'fortwitterCard, which meant passingtwitterCard: falseto disable the output was ignored. Wrapped the twitter:card meta push inif (options.twitterCard !== false)so users can opt out entirely. The existingtagPriority: 'low'mechanism already handles runtime overrides viauseSeoMeta/useHead.Summary by CodeRabbit
Improvements
Tests