@base44-preview/cli 0.0.37-pr.357.87da1eb → 0.0.37-pr.357.9a73e6e

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/cli/index.js CHANGED
@@ -244418,6 +244418,10 @@ async function execAction(scriptArg, options8, extraArgs) {
244418
244418
  } catch (error48) {
244419
244419
  throw await ApiError.fromHttpError(error48, "exchanging platform token for app user token");
244420
244420
  }
244421
+ let appBaseUrl;
244422
+ try {
244423
+ appBaseUrl = await getSiteUrl();
244424
+ } catch {}
244421
244425
  const tempWrapper = join16(tmpdir2(), `base44-exec-wrapper-${Date.now()}.js`);
244422
244426
  copyFileSync(EXEC_WRAPPER_PATH, tempWrapper);
244423
244427
  try {
@@ -244434,7 +244438,8 @@ async function execAction(scriptArg, options8, extraArgs) {
244434
244438
  SCRIPT_PATH: scriptPath,
244435
244439
  BASE44_APP_ID: appConfig.id,
244436
244440
  BASE44_ACCESS_TOKEN: appUserToken,
244437
- BASE44_API_URL: getBase44ApiUrl()
244441
+ BASE44_API_URL: getBase44ApiUrl(),
244442
+ ...appBaseUrl ? { BASE44_APP_BASE_URL: appBaseUrl } : {}
244438
244443
  },
244439
244444
  stdio: "inherit"
244440
244445
  });
@@ -248819,4 +248824,4 @@ export {
248819
248824
  CLIExitError
248820
248825
  };
248821
248826
 
248822
- //# debugId=D0BCB3536472873564756E2164756E21
248827
+ //# debugId=B22F385C624D714C64756E2164756E21