kitstore-cli 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +3 -1
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -65,7 +65,9 @@ async function getConfig() {
|
|
|
65
65
|
const content = await fs.readJson(CONFIG_FILE);
|
|
66
66
|
// Environment variable takes precedence over config file, bundled default, then localhost
|
|
67
67
|
const defaultConfig = await loadBundledDefaultConfig();
|
|
68
|
-
|
|
68
|
+
// If content.server exists (even if falsy like empty string), use it; otherwise use fallback
|
|
69
|
+
const server = process.env.AGENTKIT_BACKEND_URL ||
|
|
70
|
+
(content.server !== undefined ? content.server : (defaultConfig?.server || 'http://localhost:3000'));
|
|
69
71
|
return { ...content, server };
|
|
70
72
|
}
|
|
71
73
|
}
|