I added the following to the configuration of my StaticSite so that old files would be deleted when new builds are uploaded (by default, old files that were not included in new builds were still there, allowing users to navigate directly to pages we intended to remove).
After adding this transform, navigating to the website just returns AccessDenied, which I'm assuming is because other options are being overridden, maybe with bucket permissions or cors? I don't think this is the expected behavior. Removing the transform fixes the issue.
Any help here is greatly appreciated!
EDIT: It turns out this is not how you solve the problem with deleting old files when new builds are uploaded, since new deployments don't delete the bucket, but this seems to be an issue for people nonetheless
I added the following to the configuration of my StaticSite so that old files would be deleted when new builds are uploaded (by default, old files that were not included in new builds were still there, allowing users to navigate directly to pages we intended to remove).
After adding this transform, navigating to the website just returns
AccessDenied
, which I'm assuming is because other options are being overridden, maybe with bucket permissions or cors? I don't think this is the expected behavior. Removing the transform fixes the issue.Any help here is greatly appreciated!
EDIT: It turns out this is not how you solve the problem with deleting old files when new builds are uploaded, since new deployments don't delete the bucket, but this seems to be an issue for people nonetheless