diff --git a/src/containers/LearnerDashboardHeader/BrandLogo.jsx b/src/containers/LearnerDashboardHeader/BrandLogo.jsx
index fcedb008..d9a79afe 100644
--- a/src/containers/LearnerDashboardHeader/BrandLogo.jsx
+++ b/src/containers/LearnerDashboardHeader/BrandLogo.jsx
@@ -3,8 +3,8 @@ import React from 'react';
import { useIntl } from '@edx/frontend-platform/i18n';
import { reduxHooks } from 'hooks';
-import { configuration } from '../../config';
+import { getConfig } from '@edx/frontend-platform';
import messages from './messages';
export const BrandLogo = () => {
@@ -15,7 +15,7 @@ export const BrandLogo = () => {
diff --git a/src/widgets/ProductRecommendations/components/ProductCardHeader.jsx b/src/widgets/ProductRecommendations/components/ProductCardHeader.jsx
index 5531f834..3e3fbd96 100644
--- a/src/widgets/ProductRecommendations/components/ProductCardHeader.jsx
+++ b/src/widgets/ProductRecommendations/components/ProductCardHeader.jsx
@@ -5,6 +5,7 @@ import { getAuthenticatedUser } from '@edx/frontend-platform/auth';
import { Icon, Hyperlink } from '@edx/paragon';
import { ChevronRight } from '@edx/paragon/icons';
+import { getConfig } from '@edx/frontend-platform';
import { trackProductHeaderClicked } from '../optimizelyExperiment';
import { recommendationsHeaderClicked } from '../track';
import { executiveEducation, bootCamp } from '../constants';
@@ -44,7 +45,7 @@ const ProductCardHeader = ({ courseType }) => {
const { formatMessage } = useIntl();
const productTypeDetail = getProductTypeDetail(courseType);
- const headerUrl = `${process.env.MARKETING_SITE_BASE_URL}${productTypeDetail.url}`;
+ const headerUrl = `${getConfig().MARKETING_SITE_BASE_URL}${productTypeDetail.url}`;
return (
diff --git a/src/widgets/ProductRecommendations/optimizely.js b/src/widgets/ProductRecommendations/optimizely.js
index 154aa912..504cd96f 100644
--- a/src/widgets/ProductRecommendations/optimizely.js
+++ b/src/widgets/ProductRecommendations/optimizely.js
@@ -1,6 +1,8 @@
import { createInstance, setLogLevel } from '@optimizely/react-sdk';
-const OPTIMIZELY_SDK_KEY = process.env.OPTIMIZELY_FULL_STACK_SDK_KEY;
+import { getConfig } from '@edx/frontend-platform';
+
+const OPTIMIZELY_SDK_KEY = getConfig().OPTIMIZELY_FULL_STACK_SDK_KEY;
const configureClient = () => {
setLogLevel('error');
diff --git a/src/widgets/ProductRecommendations/optimizely.test.js b/src/widgets/ProductRecommendations/optimizely.test.js
index 58ea0bd7..a97631cc 100644
--- a/src/widgets/ProductRecommendations/optimizely.test.js
+++ b/src/widgets/ProductRecommendations/optimizely.test.js
@@ -6,6 +6,10 @@ jest.mock('@optimizely/react-sdk', () => ({
setLogLevel: jest.fn(),
}));
+jest.mock('@edx/frontend-platform', () => ({
+ getConfig: jest.fn(() => ({ OPTIMIZELY_FULL_STACK_SDK_KEY: 'SDK Key' })),
+}));
+
describe('optimizelyClient', () => {
it('should configure an Optimizely client instance with the correct SDK key', () => {
expect(optimizelyClient).toBeDefined();