diff --git a/src/index.ts b/src/index.ts index 258d9bf8..5c3d982a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) {