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
@@ -10,7 +10,8 @@ import path from 'path';
|
||||
import { assertCoursewareId, assertCoursewareVersion, resolveDirectChildPath } from './identity';
|
||||
|
||||
export const COURSEWARE_BUNDLES_DIR =
|
||||
process.env.COURSEWARE_BUNDLE_DIR ?? path.join(process.cwd(), 'data', 'courseware-bundles');
|
||||
process.env.COURSEWARE_BUNDLE_DIR ??
|
||||
path.join(process.env.LEARNING_DATA_DIR ?? path.join(process.cwd(), 'data'), 'courseware-bundles');
|
||||
|
||||
export interface BundleByteStore {
|
||||
save(coursewareId: string, version: number, bytes: Uint8Array): Promise<string>;
|
||||
|
||||
@@ -12,7 +12,8 @@ import { assertCoursewareId, assertCoursewareVersion, resolveDirectChildPath } f
|
||||
import { writeJsonFileAtomic } from '@/lib/server/classroom-storage';
|
||||
|
||||
export const COURSEWARES_DIR =
|
||||
process.env.COURSEWARE_DATA_DIR ?? path.join(process.cwd(), 'data', 'coursewares');
|
||||
process.env.COURSEWARE_DATA_DIR ??
|
||||
path.join(process.env.LEARNING_DATA_DIR ?? path.join(process.cwd(), 'data'), 'coursewares');
|
||||
|
||||
function recordsPath(dir: string, coursewareId: string): string {
|
||||
assertCoursewareId(coursewareId);
|
||||
|
||||
Reference in new issue
Block a user