@codedazur/cdk-sanity-site
v1.0.2
Published
> [!WARNING] > > This construct is deprecated. Please use the `StaticSite` construct instead with the `rewriteMode` set to `RewriteMode.SinglePage`. > > ```ts > new StaticSite({ > source: "../sanity/dist", > rewriteMode: RewriteMode.SinglePage, > });
Maintainers
Keywords
Readme
SanitySite
[!WARNING]
This construct is deprecated. Please use the
StaticSiteconstruct instead with therewriteModeset toRewriteMode.SinglePage.new StaticSite({ source: "../sanity/dist", rewriteMode: RewriteMode.SinglePage, });For more information on usage and configuration, please refer to the
StaticSitereadme.
This construct is simply a StaticSite with the addition of a CloudFront ViewerRequest Function to rewrite requests to the index.html file, since Sanity is compiled to a single route.
new SanitySite(this, "Sanity", {
src: "../sanity/dist",
});For more information on usage and configuration, please refer to the StaticSite readme.
