diff --git a/index.ts b/index.ts index 71c6157d..c1004eb5 100644 --- a/index.ts +++ b/index.ts @@ -623,7 +623,7 @@ class ServerlessCustomDomain { // Use APIGateway (v1) for EDGE domains if (domain.endpointType === Globals.endpointTypes.edge) { const params = { - basePath: domain.apiMapping.ApiMappingKey, + basePath: domain.apiMapping.ApiMappingKey || "(none)", domainName: domain.givenDomainName, patchOperations: [ {