Skip to content

tsukiy0's blog

Deploy static site with AWS CDK

November 12, 2020

Construct

Usage

public class MyStack extends Stack {
constructor(
scope: Construct,
id: string,
props: StackProps
) {
super(scope, id);
const site = new StaticSite(this, "StaticSite", {
domainName: "blog.tsukiyo.io",
source: Source.asset(path.resolve(__dirname, "../../web/src")),
noCachePathPatterns: [
"*.html",
"manifest.webmanifest"
]
});
}
}

tsukiy0