It appears you're deploying to CDK, then copying the Cognito pool/client details and putting them into the environment variables for the react project. Would it not be more efficient for dev/prod deployment to have the stack auto-build the react project AND pass it into the build command dynamically, and use an S3 bucket to host the react app?
Great video thanks, loved the detail on customising the login UI!
It appears you're deploying to CDK, then copying the Cognito pool/client details and putting them into the environment variables for the react project. Would it not be more efficient for dev/prod deployment to have the stack auto-build the react project AND pass it into the build command dynamically, and use an S3 bucket to host the react app?
This is indeed a practical solution in industry