Closed Firgrep closed 3 months ago
@ej-choi Heads up! The mdx renderer is ready and I've added a function that can be called to retrieve compiled mdx from db dbGetCompiledMdxBySlugs()
to be called serverside (I expect we really only need server components for this) - it takes an object as argument and you must specify access. See function jsdocs for specifics.
On second thought, perhaps access should be specific by the lesson? Given some lessons might be in "preview" mode or something?
This is a basic layout of the routes concerning the courses, following a recent meeting I had with @ej-choi .
Main course page
Displays the full list of courses. I don't think we need to segregate any access on this page, but just list the courses and point a link to the course page.
Individual course page details
Detailed information about the individual course. Also keep this public.
CourseDetails
data model for this and add that as a one-to-one relation toCourse
model.Individual lesson page
The lesson page which renders data from
Video
,LessonContent
andLessonTranscript
.Anything else to do with building the functionality and routing of these pages, comment below.