arc-macro-custom-domain
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -22,5 +22,9 @@ module.exports = function(arc, cloudformation, stage) { | ||
} | ||
let restId = Object.keys(cloudformation.Resources)[0]; //probably could make this better | ||
let restId = 'ServerlessHttpApi' | ||
Object.keys(cloudformation.Resources).forEach(k => { | ||
if (cloudformation.Resources[k].Type === 'AWS::Serverless::Api') { | ||
restId = k; | ||
} | ||
}); //probably could make this better | ||
if (params.httpAPI) { | ||
restId = 'ServerlessHttpApi'; | ||
cloudformation.Resources.ApiGatewayDomain = { | ||
@@ -27,0 +31,0 @@ Type: 'AWS::ApiGatewayV2::DomainName', |
{ | ||
"name": "arc-macro-custom-domain", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "- only works on staging (for now) - can override domain with `ARC_DOMAIN`", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4131
97
1