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
@@ -22,13 +22,6 @@ export function getVisualClientConfig(): VisualClientConfig | null {
|
||||
};
|
||||
}
|
||||
|
||||
export function shouldMockVisualApi(): boolean {
|
||||
const flag = process.env.JIMENG_VISUAL_MOCK || "auto";
|
||||
if (flag === "1" || flag === "true") return true;
|
||||
if (flag === "0" || flag === "false") return false;
|
||||
return getVisualClientConfig() === null;
|
||||
}
|
||||
|
||||
export async function submitVisualTask(
|
||||
payload: Record<string, unknown>,
|
||||
config = getVisualClientConfig()
|
||||
|
||||
Reference in new issue
Block a user