diff --git a/package-lock.json b/package-lock.json index d8bd14a..c794046 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "@adobe/storefront-product-listing-page", - "version": "1.1.0", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@adobe/storefront-product-listing-page", - "version": "1.1.0", - "license": "Apache-2.0", + "version": "2.0.0", + "license": "MIT", "dependencies": { "@headlessui/react": "^1.7.17", "currency-symbol-map": "^5.1.0", diff --git a/src/context/store.tsx b/src/context/store.tsx index f03c247..538ce33 100644 --- a/src/context/store.tsx +++ b/src/context/store.tsx @@ -74,12 +74,10 @@ const StoreContextProvider = ({ userViewHistory: context?.userViewHistory ?? [], }, apiUrl: environmentType?.toLowerCase() === 'testing' ? TEST_URL : API_URL, - apiKey: environmentType?.toLowerCase() === 'testing' ? API_KEY : apiKey, - //This is for the publix repo setup - // apiKey: - // environmentType?.toLowerCase() === 'testing' && !apiKey - // ? SANDBOX_KEY - // : apiKey, + apiKey: + environmentType?.toLowerCase() === 'testing' && !apiKey + ? SANDBOX_KEY + : apiKey, route, searchQuery, }), diff --git a/src/types/globals.d.ts b/src/types/globals.d.ts index cc86627..2b74853 100644 --- a/src/types/globals.d.ts +++ b/src/types/globals.d.ts @@ -21,6 +21,7 @@ declare global { const WIDGET_CONFIG_URL: string; const LS_API_URL: string; const API_KEY: string; + const SANDBOX_KEY: string; const TEST_URL: string; const FLOODGATE_CLIENT_ID: string; const FLOODGATE_API_KEY: string;