insta 0.0.16 → 0.0.17
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 +4 -1
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -6,7 +6,10 @@ const GLOBAL_DIR = join(homedir(), '.insta');
|
|
|
6
6
|
const GLOBAL_FILE = join(GLOBAL_DIR, 'config.json');
|
|
7
7
|
const PROJECT_DIR = '.insta';
|
|
8
8
|
const PROJECT_FILE = 'project.json';
|
|
9
|
-
|
|
9
|
+
// The cloud API default. Uses the instacloud.com brand domain (matches the agents.instacloud.com
|
|
10
|
+
// onboarding), NOT the legacy beta-api.insta.insforge.dev host — same backend, branded domain.
|
|
11
|
+
// Only affects fresh installs: a persisted apiUrl (from a prior login) or INSTA_API_URL wins below.
|
|
12
|
+
const DEFAULT_API = 'https://api.instacloud.com';
|
|
10
13
|
export async function readGlobal() {
|
|
11
14
|
// INSTA_API_URL overrides the persisted apiUrl, not just the default — otherwise the
|
|
12
15
|
// env var is silently ignored as soon as any login has written a config file.
|