diff --git a/.env.development b/.env.development index bd53b6bb5..26bd22668 100644 --- a/.env.development +++ b/.env.development @@ -7,6 +7,7 @@ DISCOVERY_API_BASE_URL=http://localhost:18381 PUBLISHER_BASE_URL=http://localhost:18400 ECOMMERCE_BASE_URL=http://localhost:18130 LANGUAGE_PREFERENCE_COOKIE_NAME=openedx-language-preference +LEARNING_BASE_URL=http://localhost:2000 LMS_BASE_URL=http://localhost:18000 LOGIN_URL=http://localhost:18000/login LOGOUT_URL=http://localhost:18000/logout diff --git a/.env.test b/.env.test index bd53b6bb5..26bd22668 100644 --- a/.env.test +++ b/.env.test @@ -7,6 +7,7 @@ DISCOVERY_API_BASE_URL=http://localhost:18381 PUBLISHER_BASE_URL=http://localhost:18400 ECOMMERCE_BASE_URL=http://localhost:18130 LANGUAGE_PREFERENCE_COOKIE_NAME=openedx-language-preference +LEARNING_BASE_URL=http://localhost:2000 LMS_BASE_URL=http://localhost:18000 LOGIN_URL=http://localhost:18000/login LOGOUT_URL=http://localhost:18000/logout diff --git a/src/config.js b/src/config.js index bd402d5e5..b6d3532a5 100644 --- a/src/config.js +++ b/src/config.js @@ -51,6 +51,7 @@ let config = { ENVIRONMENT, IGNORED_ERROR_REGEX: extractRegex(process.env.IGNORED_ERROR_REGEX), LANGUAGE_PREFERENCE_COOKIE_NAME: process.env.LANGUAGE_PREFERENCE_COOKIE_NAME, + LEARNING_BASE_URL: process.env.LEARNING_BASE_URL, LMS_BASE_URL: process.env.LMS_BASE_URL, LOGIN_URL: process.env.LOGIN_URL, LOGOUT_URL: process.env.LOGOUT_URL, @@ -176,6 +177,7 @@ export function ensureConfig(keys, requester = 'unspecified application code') { * @property {string} ENVIRONMENT This is one of: development, production, or test. * @property {string} IGNORED_ERROR_REGEX * @property {string} LANGUAGE_PREFERENCE_COOKIE_NAME + * @property {string} LEARNING_BASE_URL * @property {string} LMS_BASE_URL * @property {string} LOGIN_URL * @property {string} LOGOUT_URL diff --git a/src/setupTest.js b/src/setupTest.js index 030dc8812..5bac1e543 100644 --- a/src/setupTest.js +++ b/src/setupTest.js @@ -18,6 +18,7 @@ process.env.PUBLISHER_BASE_URL = 'http://localhost:18400'; process.env.ECOMMERCE_BASE_URL = 'http://localhost:18130'; process.env.LANGUAGE_PREFERENCE_COOKIE_NAME = 'openedx-language-preference'; process.env.LMS_BASE_URL = 'http://localhost:18000'; +process.env.LEARNING_BASE_URL = 'http://localhost:2000'; process.env.LOGIN_URL = 'http://localhost:18000/login'; process.env.LOGOUT_URL = 'http://localhost:18000/logout'; process.env.STUDIO_BASE_URL = 'http://localhost:18010';