feat: productionize learning engine and classroom
This commit is contained in:
1 parent
2d04197f3f
commit
ba35adfbfa
124 files changed
+9071
-796
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user