production runtime and mock removal

This commit is contained in:
inman committed 2026-08-17 23:44:14 +08:00
1 parent 2ef3da7af5
commit 6480e503eb
55 files changed
+581 -540

No files matched your search

-7
View File
@@ -71,13 +71,6 @@ export function getEvolinkImageConfig(): EvolinkImageConfig | null {
return { ...settings, apiKey: settings.apiKey };
}
export function shouldMockEvolinkApi(): boolean {
const flag = (process.env.EVOLINK_MOCK || "auto").trim().toLowerCase();
if (flag === "1" || flag === "true") return true;
if (flag === "0" || flag === "false") return false;
return getEvolinkImageConfig() === null;
}
export function buildEvolinkImagePayload(
capability: EnabledImageCapability,
input: Record<string, unknown>,