This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/serverless-components/domain Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ const getOutdatedDomains = (inputs, state) => {
81
81
* - These don't need to be created and SHOULD NOT be modified.
82
82
*/
83
83
const getDomainHostedZoneId = async ( route53 , domain , privateZone ) => {
84
- const hostedZonesRes = await route53 . listHostedZonesByName ( ) . promise ( ) ;
84
+ const params = {
85
+ DNSName : domain
86
+ } ;
87
+
88
+ const hostedZonesRes = await route53 . listHostedZonesByName ( params ) . promise ( ) ;
85
89
86
90
const hostedZone = hostedZonesRes . HostedZones . find (
87
91
// Name has a period at the end, so we're using includes rather than equals
@@ -121,7 +125,7 @@ const getCertificateArnByDomain = async (acm, domain) => {
121
125
for ( const certificate of listRes . CertificateSummaryList ) {
122
126
if ( certificate . DomainName === domain && certificate . CertificateArn ) {
123
127
if ( domain . startsWith ( "www." ) ) {
124
- const nakedDomain = domain . replace ( "wwww ." , "" ) ;
128
+ const nakedDomain = domain . replace ( "www ." , "" ) ;
125
129
// check whether certificate support naked domain
126
130
const certDetail = await describeCertificateByArn (
127
131
acm ,
You can’t perform that action at this time.
0 commit comments