From d9b81a0b05e19499fbda836f68c4234fbdc3b1d2 Mon Sep 17 00:00:00 2001 From: Fabian Cook Date: Sat, 9 May 2020 16:20:10 +1200 Subject: [PATCH 1/2] Fixes #332 --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 71c6157d..a052f601 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: [ { From 7076ff0a9b1fe8d69726d3db481339445fd304e6 Mon Sep 17 00:00:00 2001 From: Fabian Cook Date: Sun, 10 May 2020 15:58:09 +1200 Subject: [PATCH 2/2] Correct linting --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index a052f601..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 || '(none)', + basePath: domain.apiMapping.ApiMappingKey || "(none)", domainName: domain.givenDomainName, patchOperations: [ {