Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit b9d3d8b

Browse files
committed
Refactor HttpStack to streamline domain name initialization and improve readability
1 parent 639917d commit b9d3d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/httpAPI-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class HttpStack extends cdk.Stack {
2727
const certificateArn = cdk.Fn.importValue(`BeejhoBackendCertificateStack-CertificateArn`);
2828
const certificate = Certificate.fromCertificateArn(this, getResourceName(envName, `BeejhoBackendCertificateReference`), certificateArn);
2929

30-
const domainName = new DomainName(this, getResourceName(envName, getResourceName(envName, 'ApiDomain')), {
30+
const domainName = new DomainName(this, getResourceName(envName, 'ApiDomain'), {
3131
domainName: `${subdomain}.beejho.in`,
3232
certificate,
3333
});

0 commit comments

Comments
 (0)