Skip to content

Commit

Permalink
Merge pull request #627 from 0vvland/main
Browse files Browse the repository at this point in the history
Fix domain deleting when fail on not exist stack
  • Loading branch information
rddimon authored Jul 18, 2024
2 parents fa193e3 + 6f72d9d commit 0dd7645
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ class ServerlessCustomDomain {
`Unable to remove base path mappings for '${domain.givenDomainName}':\n${err.message}`
);
}
if (domain.preserveExternalPathMappings) {
externalBasePathExists = true;
}
}

if (domain.autoDomain === true && !externalBasePathExists) {
Expand Down

0 comments on commit 0dd7645

Please sign in to comment.