Changes to StaticSite
We made some changes to how StaticSite
, ReactStaticSite
, and ViteStaticSite
handle orphaned files during the deployment.
Prior to this release, on each deployment, files that were previously deployed but are no longer in the current deployment are NOT removed. This caused an issue where removed files/pages are still accessible after they have been removed from the site. Starting with this release, orphaned files will be removed by default.
You can control this behavior by setting purgeFiles
to false
.
new StaticSite(this, "Site", {
path: "path/to/src",
purgeFiles: false,
});
This affects the StaticSite
, ReactStaticSite
, and ViteStaticSite
constructs.
🚀 Enhancement
- #1541 StaticSite: support removing old files (@fwang)
- #1533 StaticSite: replace environment in all html files (@fwang)
📝 Documentation
- #1535 Auth: Fix documentation typo (@philipliberato)
- #1529 Update Datadog example to CDK V2 (@Manitej66)
- #1512 Added Thundra example (@Manitej66)
Contributors
- Philip Liberato (@philipliberato)
Update using:
$ npx sst update 0.69.1
$ yarn sst update 0.69.1