From 09dbe55d4f0e7410bafed1a97762dfa2fe74cb5f Mon Sep 17 00:00:00 2001 From: Yusuf Musleh Date: Thu, 11 Jan 2024 18:20:59 +0300 Subject: [PATCH] Refactor: Update env variable for library mfe --- .env | 2 +- .env.development | 2 +- .env.test | 2 +- src/index.jsx | 2 +- src/library-authoring/author-library/LibraryAuthoringPage.jsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index f82c060a..f5a6e245 100644 --- a/.env +++ b/.env @@ -25,4 +25,4 @@ PRIVACY_POLICY_URL= SUPPORT_EMAIL= ENABLE_ACCESSIBILITY_PAGE=false LOGO_URL= -COURSE_AUTHORING_MFE_BASE_URL= +COURSE_AUTHORING_MICROFRONTEND_URL= diff --git a/.env.development b/.env.development index 61d2c36a..ea6132a6 100644 --- a/.env.development +++ b/.env.development @@ -27,4 +27,4 @@ SUPPORT_EMAIL= ENABLE_ACCESSIBILITY_PAGE=false LOGO_URL=https://edx-cdn.org/v3/default/logo.svg MFE_NAME='frontend-app-library-authoring' -COURSE_AUTHORING_MFE_BASE_URL='http://localhost:2001' +COURSE_AUTHORING_MICROFRONTEND_URL='http://localhost:2001' diff --git a/.env.test b/.env.test index 69f0b18c..fb739f23 100644 --- a/.env.test +++ b/.env.test @@ -25,4 +25,4 @@ PRIVACY_POLICY_URL= SUPPORT_EMAIL= ENABLE_ACCESSIBILITY_PAGE=false LOGO_URL=https://edx-cdn.org/v3/default/logo.svg -COURSE_AUTHORING_MFE_BASE_URL='http://localhost:2001' +COURSE_AUTHORING_MICROFRONTEND_URL='http://localhost:2001' diff --git a/src/index.jsx b/src/index.jsx index 9c7ee2cd..df18c2fc 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -39,7 +39,7 @@ mergeConfig({ PRIVACY_POLICY_URL: process.env.PRIVACY_POLICY_URL, SUPPORT_EMAIL: process.env.SUPPORT_EMAIL, SHOW_ACCESSIBILITY_PAGE: process.env.SHOW_ACCESSIBILITY_PAGE, - COURSE_AUTHORING_MFE_BASE_URL: process.env.COURSE_AUTHORING_MFE_BASE_URL, + COURSE_AUTHORING_MICROFRONTEND_URL: process.env.COURSE_AUTHORING_MICROFRONTEND_URL, }); subscribe(APP_READY, () => { diff --git a/src/library-authoring/author-library/LibraryAuthoringPage.jsx b/src/library-authoring/author-library/LibraryAuthoringPage.jsx index eafc722c..7a762b2d 100644 --- a/src/library-authoring/author-library/LibraryAuthoringPage.jsx +++ b/src/library-authoring/author-library/LibraryAuthoringPage.jsx @@ -533,7 +533,7 @@ const ContentTagsDrawer = ({ openContentTagsDrawer, setOpenContentTagsDrawer }) ref={iFrameRef} title="manage-tags-drawer" className="w-100 h-100 border-0" - src={`${getConfig().COURSE_AUTHORING_MFE_BASE_URL}/tagging/components/widget/${openContentTagsDrawer}`} + src={`${getConfig().COURSE_AUTHORING_MICROFRONTEND_URL}/tagging/components/widget/${openContentTagsDrawer}`} /> );