production runtime and mock removal
This commit is contained in:
1 parent
2ef3da7af5
commit
6480e503eb
55 files changed
+581
-540
No files matched your search
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user