init media adapter refactoring

This commit is contained in:
dswbx
2025-07-05 18:12:55 +02:00
parent c384bf4dd4
commit 786d1d1bd4
9 changed files with 86 additions and 101 deletions
+3 -3
View File
@@ -5,7 +5,6 @@ import type { CliBkndConfig, CliCommand } from "cli/types";
import { Option } from "commander";
import { config } from "core";
import dotenv from "dotenv";
import { registries } from "modules/registries";
import c from "picocolors";
import path from "node:path";
import {
@@ -58,10 +57,11 @@ export const run: CliCommand = (program) => {
};
// automatically register local adapter
const local = StorageLocalAdapter.prototype.getName();
// @todo: add back
/* const local = StorageLocalAdapter.prototype.getName();
if (!registries.media.has(local)) {
registries.media.register(local, StorageLocalAdapter);
}
} */
type MakeAppConfig = {
connection?: CreateAppConfig["connection"];