@embeddable.com/sdk-core 3.14.1-next.1 → 3.14.2-next.0

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.
@@ -85,6 +85,7 @@ export type ResolvedEmbeddableConfig = {
85
85
  logger: any;
86
86
  sys: any;
87
87
  };
88
+ region: Region;
88
89
  [PLUGIN_NAME]: {
89
90
  rootDir: string;
90
91
  templatesDir: string;
@@ -244,6 +245,7 @@ declare const _default: (config: EmbeddableConfig) => {
244
245
  logger: undefined;
245
246
  sys: undefined;
246
247
  };
248
+ region: Region;
247
249
  pushModels: boolean;
248
250
  pushComponents: boolean;
249
251
  pushBaseUrl: string;
package/lib/index.esm.js CHANGED
@@ -21888,8 +21888,9 @@ var push = async () => {
21888
21888
  }
21889
21889
  catch (error) {
21890
21890
  if (((_b = (_a = error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.errorCode) === "BUILDER-998") {
21891
- spinnerPushing.fail(`Authentication failure. Server responded with: "${(_d = (_c = error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.errorMessage}". Ensure that your API key is valid for the region specified in the embeddable.config.ts|js file.
21892
- You are trying to push to the following app url: ${config.previewBaseUrl}
21891
+ spinnerPushing.fail(`Authentication failure. Server responded with: "${(_d = (_c = error.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.errorMessage}".
21892
+ Ensure that your API key is valid for the region specified in the embeddable.config.ts|js file.
21893
+ You are using the following region: ${config.region.replace("legacy-", "")} (${config.previewBaseUrl.replace("https://", "")} via ${config.pushBaseUrl})
21893
21894
  Read more about deployment regions at https://docs.embeddable.com/deployment/deployment-regions`);
21894
21895
  process.exit(1);
21895
21896
  }
@@ -22557,6 +22558,7 @@ var defineConfig = (config) => {
22557
22558
  logger: undefined,
22558
22559
  sys: undefined,
22559
22560
  },
22561
+ region,
22560
22562
  pushModels,
22561
22563
  pushComponents,
22562
22564
  pushBaseUrl: pushBaseUrl !== null && pushBaseUrl !== void 0 ? pushBaseUrl : regionConfig.pushBaseUrl,