Austin
03/21/2022, 7:33 PMsst.StaticSite
construct? I’m using it to build a multi-purpose reverse proxy/redirect engine for several of our domains. StaticSite provides some convenience I would like to leverage, but I also need the CloudFront distribution to allow multiple custom domains. When I configure it directly on the cfDistribution
I get an error telling me to use customDomain
on the sst.StaticSite
but this doesn’t appear to allow multiple domains. Any suggestions?thdxr
03/21/2022, 7:35 PMthdxr
03/21/2022, 7:35 PMthdxr
03/21/2022, 7:35 PMalternatNames
thdxr
03/21/2022, 7:35 PMAustin
03/21/2022, 7:36 PMthdxr
03/21/2022, 7:36 PMAustin
03/21/2022, 7:38 PMError: Do not configure the "cfDistribution.certificate". Use the "customDomain" to configure the StaticSite domain certificate.
Austin
03/21/2022, 7:39 PMthdxr
03/21/2022, 7:40 PMthdxr
03/21/2022, 7:40 PMnew sst.StaticSite(this, "Site", {
customDomain: { alternateNames: [...], certificate: <cert> }
})
Austin
03/22/2022, 3:08 PMthdxr
03/22/2022, 3:53 PMthdxr
03/22/2022, 3:53 PMAustin
03/22/2022, 3:58 PMthdxr
03/22/2022, 4:07 PM