refactor: remove workspace publishing and bundles
This commit is contained in:
+1
-11
@@ -84,7 +84,7 @@ function safeInstallationId(value: string): string {
|
||||
function positiveImportLimit(value: string | undefined, fallback: number): number {
|
||||
const limit = Number(value ?? fallback);
|
||||
if (!Number.isSafeInteger(limit) || limit <= 0) {
|
||||
throw new Error("workspace import limit configuration is invalid");
|
||||
throw new Error("workspace limit configuration is invalid");
|
||||
}
|
||||
return limit;
|
||||
}
|
||||
@@ -239,18 +239,8 @@ export function loadConfig(env: Record<string, string | undefined>): AppConfig {
|
||||
root: registryRoot,
|
||||
remoteUrl,
|
||||
branch: registryBranch,
|
||||
gitAuthorName: requiredRegistryValue(
|
||||
env.THT_WORKSPACE_GIT_AUTHOR_NAME ?? "Thoth Workspace Registry",
|
||||
"Git author name",
|
||||
),
|
||||
gitAuthorEmail: requiredRegistryValue(
|
||||
env.THT_WORKSPACE_GIT_AUTHOR_EMAIL ?? "thoth-workspace-registry@localhost",
|
||||
"Git author email",
|
||||
),
|
||||
installationId,
|
||||
secretRoots,
|
||||
maxImportBytes: positiveImportLimit(env.THT_WORKSPACE_MAX_IMPORT_BYTES, 10 * 1024 * 1024),
|
||||
maxImportEntries: positiveImportLimit(env.THT_WORKSPACE_MAX_IMPORT_ENTRIES, 32),
|
||||
dataRoot: env.THT_DATA_ROOT,
|
||||
maxEvidenceEntries: positiveImportLimit(env.THT_WORKSPACE_MAX_EVIDENCE_ENTRIES, 4096),
|
||||
maxEvidenceBytes: positiveImportLimit(env.THT_WORKSPACE_MAX_EVIDENCE_BYTES, 64 * 1024 * 1024),
|
||||
|
||||
Reference in New Issue
Block a user