diff --git a/config/constants.js b/config/constants.js index 8ca15cb..46c91a7 100644 --- a/config/constants.js +++ b/config/constants.js @@ -2,15 +2,15 @@ module.exports = Object.freeze({ APP_CONFIG: [ { 'appEnv': 'dev', - 'mfeConfigPath': 'https://tc-public-static-files.topcoder-dev.com/micro-frontends/micro-frontends-config-development.json', + 'mfeConfigPath': '/micro-frontends-config-development.json', 'mfeIndexPath': '/index.html', - 'mfeRoutesPath': 'https://tc-public-static-files.topcoder-dev.com/micro-frontends/micro-frontends-routes-development.txt' + 'mfeRoutesPath': '/micro-frontends-routes-development.txt' }, { 'appEnv': 'prod', - 'mfeConfigPath': 'https://tc-public-static-files.topcoder.com/micro-frontends/micro-frontends-config-production.json', + 'mfeConfigPath': '/micro-frontends-config-production.json', 'mfeIndexPath': '/index.html', - 'mfeRoutesPath': 'https://tc-public-static-files.topcoder.com/micro-frontends/micro-frontends-routes-production.txt' + 'mfeRoutesPath': '/micro-frontends-routes-production.txt' }, { 'appEnv': 'local-multi', diff --git a/config/docs/adr-01.md b/config/docs/adr-01.md new file mode 100644 index 0000000..2e646f6 --- /dev/null +++ b/config/docs/adr-01.md @@ -0,0 +1,9 @@ +# ADR-01 2022-05-06 + +- by brooke.souza@topcoder.com and chris.mccann@topcoder.com + +We moved the source of the config json and routes txt files to source control +from the S3 server in order to simplify modifications. + +There is no sensitive info in these files, so there is no need to host +them any differently in prod or dev envs. \ No newline at end of file diff --git a/config/micro-frontends-config-development.json b/config/micro-frontends-config-development.json new file mode 100644 index 0000000..7c98eca --- /dev/null +++ b/config/micro-frontends-config-development.json @@ -0,0 +1,18 @@ +{ + "imports": { + "@topcoder/mfe-header": "https://platform.topcoder-dev.com/navbar/topcoder-mfe-header.js", + "@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js", + "@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js", + "@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js", + "@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js", + "@topcoder/micro-frontends-earn-app": "https://platform.topcoder-dev.com/earn-app/topcoder-micro-frontends-earn-app.js", + "@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js", + "@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js", + "@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js", + "@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js", + "@topcoder/micro-frontends-profile-app": "https://platform.topcoder-dev.com/profile-app/topcoder-micro-frontends-profile-app.js", + "@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder-dev.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js", + "@topcoder/micro-frontends-forums-app": "https://platform.topcoder-dev.com/forums-app/topcoder-micro-frontends-forums-app.js", + "@topcoder/mfe-customer-work": "https://platform.topcoder-dev.com/self-service-app/topcoder-mfe-customer-work.js" + } +} \ No newline at end of file diff --git a/config/micro-frontends-config-production.json b/config/micro-frontends-config-production.json new file mode 100644 index 0000000..93bb399 --- /dev/null +++ b/config/micro-frontends-config-production.json @@ -0,0 +1,16 @@ +{ + "imports": { + "@topcoder/mfe-header": "https://platform.topcoder.com/navbar/topcoder-mfe-header.js", + "@topcoder/micro-frontends-react-app": "https://platform.topcoder.com/react/topcoder-micro-frontends-react-app.js", + "@topcoder/micro-frontends-angular-app": "https://platform.topcoder.com/angular/main.js", + "@topcoder/micro-frontends-teams": "https://platform.topcoder.com/taas-app/topcoder-micro-frontends-teams.js", + "@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder.com/tasks/topcoder-micro-frontends-task-marketplace-app.js", + "@topcoder/micro-frontends-earn-app": "https://platform.topcoder.com/earn-app/topcoder-micro-frontends-earn-app.js", + "@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder.com/submissionreview/topcoder-micro-frontends-submission-review-app.js", + "@topcoder/micro-frontends-model-app": "https://platform.topcoder.com/model-app/topcoder-micro-frontends-model-app.js", + "@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js", + "@topcoder/micro-frontends-profile-app": "https://platform.topcoder.com/profile-app/topcoder-micro-frontends-profile-app.js", + "@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js", + "@topcoder/mfe-customer-work": "https://platform.topcoder.com/self-service-app/topcoder-mfe-customer-work.js" + } +} \ No newline at end of file diff --git a/config/micro-frontends-routes-development.txt b/config/micro-frontends-routes-development.txt new file mode 100644 index 0000000..e7b0b63 --- /dev/null +++ b/config/micro-frontends-routes-development.txt @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ You are unauthorized +
+
+ +
+ Welcome to the Topcoder Platform. Get started by opening an app in the tool switcher on top right corner. +
+
diff --git a/config/micro-frontends-routes-local.txt b/config/micro-frontends-routes-local.txt index ce66717..64fd423 100644 --- a/config/micro-frontends-routes-local.txt +++ b/config/micro-frontends-routes-local.txt @@ -37,6 +37,12 @@ + + + + + +
You are unauthorized diff --git a/config/micro-frontends-routes-production.txt b/config/micro-frontends-routes-production.txt new file mode 100644 index 0000000..f897067 --- /dev/null +++ b/config/micro-frontends-routes-production.txt @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ You are unauthorized +
+
+ +
+ Welcome to the Topcoder Platform. Get started by opening an app in the tool switcher on top right corner. +
+
\ No newline at end of file