Warwick Grigg
08/09/2021, 12:20 PMthdxr
08/09/2021, 12:38 PMFrank
import { Certificate } from "@aws-cdk/aws-certificatemanager";
new StaticSite(this, "Site", {
path: "path/to/src",
customDomain: {
domainName: "<http://domain.com|domain.com>",
certificate: Certificate.fromCertificateArn(this, "MyCert", certArn),
},
});
Frank
Warwick Grigg
08/09/2021, 4:06 PMFrank
StaticSite
to support non-Route 53 domain.Frank
customDomain
in StaticSite
pretending the domain is hosted on Route53
customDomain: {
domainName: "<http://domain.com|domain.com>",
certificate: Certificate.fromCertificateArn(this, "MyCert", certArn),
},
This should actually work.Warwick Grigg
08/09/2021, 4:42 PMFrank
Frank
Warwick Grigg
08/09/2021, 4:47 PMFrank
Warwick Grigg
08/09/2021, 5:05 PMFrank
Frank
Warwick Grigg
08/09/2021, 6:00 PMWarwick Grigg
08/10/2021, 8:20 AMFrank
yarn
at the root of the repo. That will ensure all the local packages are hooked up.Warwick Grigg
08/11/2021, 3:42 PMWarwick Grigg
08/11/2021, 3:42 PM@serverless-stack/resources@0.37.2 build
tsc --rootDir src --outDir dist && cd assets/stub && yarn && cd ../.. && node ./bin/create-stub-zip.js[1/4] Resolving packages... success Already up-to-date. ✅ Stub Lambda is successfully created. Done in 6.08s. lerna info run Ran npm script 'prepare' in '@serverless-stack/cli' in 0.3s: yarn run v1.22.11 $ node ./bin/sync-cdk-version.js ✅ AWS CDK packages in @serverless-stack/cli are in sync with @serverless-stack/core Done in 0.18s. lerna success run Ran npm script 'prepare' in 3 packages in 6.7s: lerna success - @serverless-stack/cli lerna success - create-serverless-stack lerna success - @serverless-stack/resources Done in 8.47s.
Warwick Grigg
08/11/2021, 3:43 PMFrank
Frank
Frank
Frank
@serverless-stack/core
is failing within @serverless-stack/resources
Jay
Warwick Grigg
08/11/2021, 9:59 PMJay
thdxr
08/11/2021, 10:02 PMls -lah node_modules/@serverless-stack/
thdxr
08/11/2021, 10:02 PMthdxr
08/11/2021, 10:04 PMJay
thdxr
08/11/2021, 10:10 PMls -lah ./packages/resources/node_modules
Warwick Grigg
08/12/2021, 7:25 AMthdxr
08/12/2021, 12:06 PMyarn build
thdxr
08/12/2021, 12:06 PMthdxr
08/12/2021, 2:24 PMpostinstall
of the root package.jsonthdxr
08/12/2021, 7:25 PMyarn watch
in the root and it'll run a watcher across the projects in the monorepo that use TSWarwick Grigg
08/13/2021, 7:09 AMyarn build
in coreWarwick Grigg
08/16/2021, 10:40 AMFrank