copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Files are not removed if new source does not contain them with static site service

Open yannickvr opened this issue 2 years ago • 2 comments

Using the Static Site Service, when I remove files from source, they are not removed from the destination.

Is this as designed, assuming files are never removed, only updated, or should this be a feature that's added to the roadmap?

The current state machine that handles the copy actions could be extended to delete files that do not exist in a manifest of files, so we don't have to scan S3 for objects that are not in the new source artifact.

E.g. current.manifest

- index.html
- myfile.html

new.manifest

- index.html
- mynewfile.html

compare of the two should initiate a delete of myfile.html

yannickvr avatar Jun 26 '23 09:06 yannickvr

More great feedback! Thanks, @yannickvr.

huanjani avatar Jun 26 '23 22:06 huanjani

Hi @huanjani ! Quick question: Is there a plan to add a feature for automatically deleting old files in the Static Site Service ? Using Angular as an example, we're ending up with a lot of unused hashed bundles after each deploy.

Thanks!

bobygnol avatar Jan 25 '24 13:01 bobygnol