From 4fd8f2131307324d395c33933794d0983e5d222d Mon Sep 17 00:00:00 2001 From: ZauberNerd Date: Thu, 22 Feb 2018 13:07:23 +0100 Subject: [PATCH] fix(lambda): warn about misconfiguration instead of exiting --- packages/lambda/lib/aws-config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/lambda/lib/aws-config.js b/packages/lambda/lib/aws-config.js index 50f353ed7..253532789 100644 --- a/packages/lambda/lib/aws-config.js +++ b/packages/lambda/lib/aws-config.js @@ -57,16 +57,15 @@ module.exports = function getAWSConfig() { config.basePath.indexOf(config.stageName) !== 0 && hopsConfig.assetPath.indexOf(config.stageName) !== 0 ) { - console.error( + console.warn( 'When no custom domain is configured, the stageName (' + config.stageName + - ') must be the first path segment in basePath (' + + ') should be the first path segment in basePath (' + config.basePath + ') and assetPath (' + hopsConfig.assetPath + ').' ); - process.exit(1); } if (config.domainName && !config.certificateArn) {