From 7dfbfe579e0e71b2da07fd94dbd9e165e0d80374 Mon Sep 17 00:00:00 2001 From: mashal-m Date: Fri, 1 Dec 2023 14:23:33 +0500 Subject: [PATCH] feat: add accounnt and profile urls in env files and replace legacy url --- .env | 2 ++ .env.development | 2 ++ .env.test | 2 ++ src/shared/links.jsx | 2 +- 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.env b/.env index b162247399..566e0989ba 100644 --- a/.env +++ b/.env @@ -6,6 +6,8 @@ NODE_ENV='production' ACCESS_TOKEN_COOKIE_NAME='' BASE_URL='' CONTACT_URL='' +ACCOUNT_SETTINGS_URL='' +ACCOUNT_PROFILE_URL='' CREDENTIALS_BASE_URL='' CREDIT_HELP_LINK_URL='' CSRF_TOKEN_API_PATH='' diff --git a/.env.development b/.env.development index 34e014efb0..60c16f2ee1 100644 --- a/.env.development +++ b/.env.development @@ -7,6 +7,8 @@ ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' BASE_URL='http://localhost:2000' CONTACT_URL='http://localhost:18000/contact' CREDENTIALS_BASE_URL='http://localhost:18150' +ACCOUNT_PROFILE_URL=http://localhost:1995 +ACCOUNT_SETTINGS_URL=http://localhost:1997 CREDIT_HELP_LINK_URL='https://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_credit_courses.html#keep-track-of-credit-requirements' CSRF_TOKEN_API_PATH='/csrf/api/v1/token' DISCOVERY_API_BASE_URL='http://localhost:18381' diff --git a/.env.test b/.env.test index b2e2ba7c34..d7e61c9ac0 100644 --- a/.env.test +++ b/.env.test @@ -20,6 +20,8 @@ FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico IGNORED_ERROR_REGEX='' LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' LMS_BASE_URL='http://localhost:18000' +ACCOUNT_PROFILE_URL=http://localhost:1995 +ACCOUNT_SETTINGS_URL=http://localhost:1997 LOGIN_URL='http://localhost:18000/login' LOGOUT_URL='http://localhost:18000/logout' LOGO_URL=https://edx-cdn.org/v3/default/logo.svg diff --git a/src/shared/links.jsx b/src/shared/links.jsx index 01713de8ec..15114eb349 100644 --- a/src/shared/links.jsx +++ b/src/shared/links.jsx @@ -46,7 +46,7 @@ const IntlProfileLink = ({ intl }) => { {intl.formatMessage(messages.profileLink)}