npm @serverless-stack/cli 0.69.1
v0.69.1

latest releases: 1.18.4, 1.18.3, 1.18.2...
2 years ago

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

Contributors


Update using:

$ npx sst update 0.69.1
$ yarn sst update 0.69.1

Don't miss a new cli release

NewReleases is sending notifications on new releases.