CDK-SPA-Deploy
CDK-SPA-Deploy copied to clipboard
Website goes down while deployment as the s3 files are being updated.
During the deployment, we notice downtime and some of the bundle files aren't there which results in a chunk load error and that causes the app to not load. after investigation, I realised this because the s3 sync is replacing the old build files (.js, .map) with the new build files while the index.html is still referencing the old ones or the other way around that the index.html is replaced before the rest of the files that it references.
I was wondering if anyone had a similar issue.