egghead-next icon indicating copy to clipboard operation
egghead-next copied to clipboard

feat: try metadata query against Sanity Course doc

Open jbranchaud opened this issue 2 years ago • 1 comments

The goal is to get egghead-next set up to read from both Course and Resource in tendem when requesting data for the Course page. If it is a course that lives in the 'Course' document, then use that. Otherwise, fallback to 'Resource', where most course metadata is living.

This is a first step. The load order and logic will probably shift around at some point, but I wanted to get this in place as a starting point so that we can test out a 'Course' course.

cours

jbranchaud avatar Aug 25 '22 16:08 jbranchaud

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
egghead-io-nextjs ✅ Ready (Inspect) Visit Preview Sep 6, 2022 at 4:20PM (UTC)
egghead-next-storybook ✅ Ready (Inspect) Visit Preview Sep 6, 2022 at 4:20PM (UTC)

vercel[bot] avatar Aug 25 '22 16:08 vercel[bot]