@sonic-equipment/ui 241.0.0 → 243.0.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.
@@ -63,10 +63,9 @@ const getAlgoliaIndex = (environment, languageCode) => {
63
63
  algoliaIndexEnv = 'development';
64
64
  }
65
65
  else {
66
- if (process?.env.ALGOLIA_APP_ID?.includes('testing')) {
67
- algoliaIndexEnv = 'development';
68
- }
69
- algoliaIndexEnv = 'production';
66
+ algoliaIndexEnv = process?.env.ALGOLIA_APP_ID?.includes('testing')
67
+ ? 'development'
68
+ : 'production';
70
69
  }
71
70
  const environmentIndex = algoliaIndexesPerEnvironment[algoliaIndexEnv];
72
71
  return {
package/dist/config.js CHANGED
@@ -70,6 +70,15 @@ const configPerEnvironment = {
70
70
  HOME_PAGE_URL: 'https://shop-accept.sonic-equipment.workers.dev/',
71
71
  SHOP_API_URL: 'https://shop-accept.sonic-equipment.workers.dev',
72
72
  }),
73
+ 'spire-production': () => ({
74
+ ALGOLIA_API_KEY: 'e31a3a53449eceb4d0f9273b9bcd9759',
75
+ ALGOLIA_APP_ID: '14CUFCVMAD',
76
+ ALGOLIA_HOST: 'shopapi.sonic-equipment.com',
77
+ BFF_API_URL: 'https://shopapi.sonic-equipment.com/api/v1/bff',
78
+ COOKIE_DOMAIN: '.sonic-equipment.com',
79
+ HOME_PAGE_URL: 'https://sonic-equipment.com/',
80
+ SHOP_API_URL: 'https://shopapi.sonic-equipment.com',
81
+ }),
73
82
  storybook: () => ({
74
83
  ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
75
84
  ALGOLIA_APP_ID: 'testing9VXJ0U4GSV',
@@ -1,3 +1,3 @@
1
- export declare const environments: readonly ["marketingLocal", "sandbox", "sandbox-reverse-proxy", "production", "local", "storybook", "next"];
1
+ export declare const environments: readonly ["marketingLocal", "sandbox", "sandbox-reverse-proxy", "production", "local", "storybook", "next", "spire-production"];
2
2
  export type Environment = (typeof environments)[number];
3
3
  export declare const environment: string;
@@ -8,6 +8,7 @@ const environments = [
8
8
  'local',
9
9
  'storybook',
10
10
  'next',
11
+ 'spire-production',
11
12
  ];
12
13
  const marketingLocal = /marketing.local.com/i;
13
14
  const storybookUrls = /localhost:6006|storybook.sonic.local.com/i;
@@ -15,6 +16,7 @@ const localUrls = /sonic.local.com/i;
15
16
  const reverseProxyUrls = /sonic-equipment.workers.dev/i;
16
17
  const sandboxUrls = /local|insitesandbox.com|azurestaticapps|ui.sonic-equipment.com|sandbox|accept|test/i;
17
18
  const productionUrls = /sonic-equipment.com|production/i;
19
+ const spireProductionUrls = /spire.sonic-equipment.com/i;
18
20
  let environmentUrl;
19
21
  function getEnvironment() {
20
22
  if (typeof process !== 'undefined' && process.env.IS_NEXT === 'true') {
@@ -49,6 +51,9 @@ function getEnvironment() {
49
51
  else if (sandboxUrls.test(environmentUrl)) {
50
52
  environment = 'sandbox';
51
53
  }
54
+ else if (spireProductionUrls.test(environmentUrl)) {
55
+ environment = 'spire-production';
56
+ }
52
57
  else if (productionUrls.test(environmentUrl)) {
53
58
  environment = 'production';
54
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "241.0.0",
3
+ "version": "243.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {