@l4yercak3/cli 1.1.2 → 1.1.3
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/package.json
CHANGED
package/src/commands/spread.js
CHANGED
|
@@ -411,24 +411,8 @@ async function handleSpread() {
|
|
|
411
411
|
oauthProviders = providers;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
// Step 6: Backend URL
|
|
415
|
-
const
|
|
416
|
-
const { backendUrl } = await inquirer.prompt([
|
|
417
|
-
{
|
|
418
|
-
type: 'input',
|
|
419
|
-
name: 'backendUrl',
|
|
420
|
-
message: 'Backend API URL:',
|
|
421
|
-
default: defaultBackendUrl,
|
|
422
|
-
validate: (input) => {
|
|
423
|
-
try {
|
|
424
|
-
new URL(input);
|
|
425
|
-
return true;
|
|
426
|
-
} catch {
|
|
427
|
-
return 'Please enter a valid URL';
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
]);
|
|
414
|
+
// Step 6: Backend URL (fixed to Convex HTTP endpoint)
|
|
415
|
+
const backendUrl = 'https://aromatic-akita-723.convex.site';
|
|
432
416
|
|
|
433
417
|
// Step 7: Production domain (for OAuth redirect URIs)
|
|
434
418
|
let productionDomain = null;
|
|
@@ -27,13 +27,13 @@ class ConfigManager {
|
|
|
27
27
|
*/
|
|
28
28
|
getConfig() {
|
|
29
29
|
this.ensureConfigDir();
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
if (!fs.existsSync(this.configFile)) {
|
|
32
32
|
return {
|
|
33
33
|
session: null,
|
|
34
34
|
organizations: [],
|
|
35
35
|
settings: {
|
|
36
|
-
backendUrl: process.env.L4YERCAK3_BACKEND_URL || 'https://
|
|
36
|
+
backendUrl: process.env.L4YERCAK3_BACKEND_URL || 'https://aromatic-akita-723.convex.site',
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -115,10 +115,11 @@ class ConfigManager {
|
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Get backend URL from config or env
|
|
118
|
+
* This is the Convex HTTP URL for all API calls
|
|
118
119
|
*/
|
|
119
120
|
getBackendUrl() {
|
|
120
121
|
const config = this.getConfig();
|
|
121
|
-
return config.settings?.backendUrl || process.env.L4YERCAK3_BACKEND_URL || 'https://
|
|
122
|
+
return config.settings?.backendUrl || process.env.L4YERCAK3_BACKEND_URL || 'https://aromatic-akita-723.convex.site';
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
/**
|
|
@@ -36,7 +36,7 @@ describe('ConfigManager', () => {
|
|
|
36
36
|
session: null,
|
|
37
37
|
organizations: [],
|
|
38
38
|
settings: {
|
|
39
|
-
backendUrl: 'https://
|
|
39
|
+
backendUrl: 'https://aromatic-akita-723.convex.site',
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
});
|
|
@@ -204,7 +204,7 @@ describe('ConfigManager', () => {
|
|
|
204
204
|
|
|
205
205
|
const url = ConfigManager.getBackendUrl();
|
|
206
206
|
|
|
207
|
-
expect(url).toBe('https://
|
|
207
|
+
expect(url).toBe('https://aromatic-akita-723.convex.site');
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
it('returns configured URL from settings', () => {
|