@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.
Files changed (2) hide show
  1. package/dist/auth.js +2 -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instafy/cli",
3
- "version": "0.1.8-staging.354",
3
+ "version": "0.1.8-staging.357",
4
4
  "description": "Run Instafy projects locally, link folders to Studio, and share previews/webhooks via tunnels.",
5
5
  "private": false,
6
6
  "publishConfig": {