@instafy/cli 0.1.8-staging.354 → 0.1.8-staging.357
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/auth.js +2 -2
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -215,7 +215,7 @@ export async function login(options) {
|
|
|
215
215
|
const explicitControllerUrl = normalizeUrl(options.controllerUrl ?? null) ??
|
|
216
216
|
normalizeUrl(process.env["INSTAFY_SERVER_URL"] ?? null) ??
|
|
217
217
|
normalizeUrl(process.env["CONTROLLER_BASE_URL"] ?? null) ??
|
|
218
|
-
resolveConfiguredControllerUrl();
|
|
218
|
+
(isStagingCli ? null : resolveConfiguredControllerUrl());
|
|
219
219
|
const defaultLocalControllerUrl = "http://127.0.0.1:8788";
|
|
220
220
|
const defaultHostedControllerUrl = "https://controller.instafy.dev";
|
|
221
221
|
const controllerUrl = explicitControllerUrl ??
|
|
@@ -226,7 +226,7 @@ export async function login(options) {
|
|
|
226
226
|
: defaultHostedControllerUrl);
|
|
227
227
|
const studioUrl = normalizeUrl(options.studioUrl ?? null) ??
|
|
228
228
|
normalizeUrl(process.env["INSTAFY_STUDIO_URL"] ?? null) ??
|
|
229
|
-
resolveConfiguredStudioUrl() ??
|
|
229
|
+
(isStagingCli ? null : resolveConfiguredStudioUrl()) ??
|
|
230
230
|
deriveDefaultStudioUrl(controllerUrl);
|
|
231
231
|
const url = new URL("/cli/login", studioUrl);
|
|
232
232
|
url.searchParams.set("serverUrl", controllerUrl);
|
package/package.json
CHANGED