Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

fix config

ahmedcoder012cb754d174c5
diff --git a/packages/app/src/backend/config.ts b/packages/app/src/backend/config.ts
index ed7f87c7..d96ee996 100644
--- a/packages/app/src/backend/config.ts
+++ b/packages/app/src/backend/config.ts
@@ -19,7 +19,8 @@ const transformEnv = (env: string) => {
return map[env] || env;
};
-const MW_BASE_URL = `http://localhost:${process.env.MIDDLEWARE_API_PORT}`;
+const MW_BASE_URL =
+ process.env.SMYTH_API_SERVER || `http://localhost:${process.env.MIDDLEWARE_API_PORT}`;
const UI_SERVER =
process.env.UI_SERVER || process.env.APP_DOMAIN || `http://localhost:${process.env.APP_PORT}`;