@embeddable.com/sdk-core 3.14.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.14.1",
3
+ "version": "3.14.2-next.0",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -86,6 +86,7 @@ describe("defineConfig", () => {
86
86
  "pushBaseUrl": "pushBaseUrl",
87
87
  "pushComponents": true,
88
88
  "pushModels": true,
89
+ "region": "legacy-US",
89
90
  "rollbarAccessToken": "rollbarAccessToken",
90
91
  }
91
92
  `);
@@ -94,6 +94,7 @@ export type ResolvedEmbeddableConfig = {
94
94
  logger: any;
95
95
  sys: any;
96
96
  };
97
+ region: Region;
97
98
  [PLUGIN_NAME]: {
98
99
  rootDir: string;
99
100
  templatesDir: string;
@@ -284,6 +285,7 @@ export default (config: EmbeddableConfig) => {
284
285
  logger: undefined,
285
286
  sys: undefined,
286
287
  },
288
+ region,
287
289
  pushModels,
288
290
  pushComponents,
289
291
  pushBaseUrl: pushBaseUrl ?? regionConfig.pushBaseUrl,
package/src/push.ts CHANGED
@@ -48,8 +48,9 @@ export default async () => {
48
48
  } catch (error: any) {
49
49
  if (error.response?.data?.errorCode === "BUILDER-998") {
50
50
  spinnerPushing.fail(
51
- `Authentication failure. Server responded with: "${error.response?.data?.errorMessage}". Ensure that your API key is valid for the region specified in the embeddable.config.ts|js file.
52
- You are trying to push to the following app url: ${config.previewBaseUrl}
51
+ `Authentication failure. Server responded with: "${error.response?.data?.errorMessage}".
52
+ Ensure that your API key is valid for the region specified in the embeddable.config.ts|js file.
53
+ You are using the following region: ${config.region.replace("legacy-", "")} (${config.previewBaseUrl.replace("https://", "")} via ${config.pushBaseUrl})
53
54
  Read more about deployment regions at https://docs.embeddable.com/deployment/deployment-regions`,
54
55
  );
55
56
  process.exit(1);