import { HugoDeploy } from 'cdk-hugo-deploy'
new HugoDeploy(scope: Construct, id: string, props: HugoDeployProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
HugoDeployProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: HugoDeployProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { HugoDeploy } from 'cdk-hugo-deploy'
HugoDeploy.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
domainName |
string |
No description. |
publicDir |
string |
No description. |
region |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly domainName: string;
- Type: string
public readonly publicDir: string;
- Type: string
public readonly region: string;
- Type: string
import { HugoDeployProps } from 'cdk-hugo-deploy'
const hugoDeployProps: HugoDeployProps = { ... }
Name | Type | Description |
---|---|---|
domainName |
string |
Domain name of the site deploying to. |
publicDir |
string |
Path to Hugo public directory, which is generated after running the hugo command. |
region |
string |
Region deploying to. |
zone |
aws-cdk-lib.aws_route53.HostedZone |
Zone the Domain Name is created in. |
public readonly domainName: string;
- Type: string
Domain name of the site deploying to.
You should already have a hosted zone in the account you're deploying to with this domain name
public readonly publicDir: string;
- Type: string
Path to Hugo public directory, which is generated after running the hugo
command.
By default, this will be the public
directory in your hugo project
public readonly region: string;
- Type: string
- Default: us-east-1
Region deploying to.
public readonly zone: HostedZone;
- Type: aws-cdk-lib.aws_route53.HostedZone
Zone the Domain Name is created in.