feat: productionize learning engine and classroom

This commit is contained in:
inman committed 2026-08-16 21:44:52 +08:00
1 parent 2d04197f3f
commit ba35adfbfa
124 files changed
+9071 -796

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@ import path from 'path';
import type { CourseManifestRecord, CourseManifestRepo } from './types';
export const COURSE_MANIFEST_DIR =
process.env.COURSE_MANIFEST_DIR ?? path.join(process.cwd(), 'data', 'course-manifests');
process.env.COURSE_MANIFEST_DIR ??
path.join(process.env.LEARNING_DATA_DIR ?? path.join(process.cwd(), 'data'), 'course-manifests');
export function isValidCourseManifestId(courseId: unknown): courseId is string {
return typeof courseId === 'string' && /^[a-zA-Z0-9_-]+$/.test(courseId);