🚀 Enhancement
We made a minor change to how StaticSite
handle 404 pages for SPAs (ie. React, Vue, Angular). If you are using StaticSite
to deploy SPAs, make sure to configure errorPage
like this:
import { StaticSite, StaticSiteErrorOptions } from "@serverless-stack/resources";
new StaticSite(this, "ReactSite", {
path: "path/to/src",
+ errorPage: StaticSiteErrorOptions.REDIRECT_TO_INDEX_PAGE,
buildCommand: "npm run build",
buildOutput: "build",
});
🐛 Bug Fix
Update using:
$ npm install --save --save-exact @serverless-stack/cli@0.29.2 @serverless-stack/resources@0.29.2