Open HollyJoyPhillips opened 1 year ago
Want to be able to verify that deployment using reapit product from ts-cdk-constructs so using the dev app would be an issue with doing that. I propose we delete the current admin-portal app (in dev) if it's not currently used and implement reapit product to handle the creation of the app for us in dev so we can verify that the production deploy will deploy ok.
In order to implement reapit product's custom resource method, I'll need to refactor our usage of envs within production/dev deployments and come up with an alternative for local development.
My current idea is to, remove the app values from the config.json and use config-manager from reapit foundations to update the parameter store value. Implement the fetching of the config.json parameter store value from parameter store when deploying with CDK. Create a config.js file that concats and injects the config.json file value and reapit product's values into REACT_ENV windows property. Then have this file be imported before the react script in the html.
As for development, I currently don't have a soultion to replicate the config.js REACT_ENV injection. So will have to invetigte.
Task:
Once verified, we will need to create an app and update the Admin portal in production (TBC)
Specification