lumniverse 0.3.0 → 0.3.1
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/assets/lumni-init.mjs +2 -0
- package/package.json +1 -1
package/assets/lumni-init.mjs
CHANGED
|
@@ -387,6 +387,8 @@ export async function main(argv = process.argv.slice(2), env = process.env, { fe
|
|
|
387
387
|
const got = await deviceLogin(consoleUrl, basename(dir), { fetchFn, sleep, open, browser: !o['no-browser'] });
|
|
388
388
|
code = got.code;
|
|
389
389
|
actor ||= got.actor_hint || null;
|
|
390
|
+
// The console says where its API is, unless this run was told already.
|
|
391
|
+
if (got.api_url && !o.url && !env.LUMNI_URL) url = String(got.api_url).replace(/\/+$/, '');
|
|
390
392
|
ok('Connected in the browser');
|
|
391
393
|
}
|
|
392
394
|
}
|