@@ -23,7 +23,7 @@ export class InfraStack extends cdk.Stack {
2323 const certificate = Certificate . fromCertificateArn ( this , 'BeejhoFrontendCertificateReference' , certificateArn ) ;
2424
2525 // Determine full domain (production uses 'beejho.in', others use 'stg.beejho.in', 'dev.beejho.in')
26- const domainNames = props . envName !== 'production '
26+ const domainNames = props . envName !== 'prod '
2727 ? [ `${ props . envName } .beejho.in` , `www.${ props . envName } .beejho.in` ]
2828 : [ 'beejho.in' , 'www.beejho.in' ] ;
2929
@@ -46,13 +46,13 @@ export class InfraStack extends cdk.Stack {
4646 new ARecord ( this , 'BeejhoCloudFrontAliasRecord' , {
4747 target : RecordTarget . fromAlias ( new CloudFrontTarget ( distribution ) ) ,
4848 zone : hostedZone ,
49- recordName : props . envName !== 'production ' ? props . envName : '' // 'stg' -> 'stg.beejho.in', undefined -> 'beejho.in'
49+ recordName : props . envName !== 'prod ' ? props . envName : '' // 'stg' -> 'stg.beejho.in', undefined -> 'beejho.in'
5050 } ) ;
5151
5252 new ARecord ( this , 'BeejhoCloudFrontAliasRecordWWW' , {
5353 target : RecordTarget . fromAlias ( new CloudFrontTarget ( distribution ) ) ,
5454 zone : hostedZone ,
55- recordName : props . envName !== 'production ' ? `www.${ props . envName } ` : 'www' // 'www.stg.beejho.in', 'www.beejho.in'
55+ recordName : props . envName !== 'prod ' ? `www.${ props . envName } ` : 'www' // 'www.stg.beejho.in', 'www.beejho.in'
5656 } ) ;
5757
5858 new cdk . CfnOutput ( this , 'BeejhoCloudFrontDistributionId' , {
0 commit comments