Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: compact undefined values from thumbnailUrls
We are getting alerts from the Google Search Console Team that some of our Video Object metadata on lesson pages is rendering with invalid thumbnailUrl. This was only happening for lessons that already didn't have a thumb_url tied to them. Some shift in the way the lesson metadata object was being built resulted in `"undefined"` ending up in that array instead of `""`. By compacting the array before it is passed as a prop to the next-seo VideoJsonLd component, we can be sure that we aren't ending up with invalid values. More details in Roam: https://roamresearch.com/#/app/egghead/page/lfzRl5FLH
- Loading branch information