diff --git a/packages/lambda/lib/aws-config.js b/packages/lambda/lib/aws-config.js index 4a2eeac1c..6ca071709 100644 --- a/packages/lambda/lib/aws-config.js +++ b/packages/lambda/lib/aws-config.js @@ -23,7 +23,7 @@ module.exports = function getAWSConfig(hopsConfig) { certificateArn: awsConfig.certificateArn, basePath: trimSlashes(hopsConfig.basePath) || '(none)', cloudformationTemplateFile: awsConfig.cloudformationTemplateFile, - include: [hopsConfig.serverDir + '/**', ...(awsConfig.include || [])], + include: [...(awsConfig.include || [])], exclude: [...(awsConfig.exclude || [])], }; diff --git a/packages/lambda/preset.js b/packages/lambda/preset.js index a6aafb148..8c8ce85ba 100644 --- a/packages/lambda/preset.js +++ b/packages/lambda/preset.js @@ -10,7 +10,7 @@ module.exports = { stageName: 'prod', uniqueName: 'hops-lambda-', cloudformationTemplateFile: path.resolve(__dirname, 'cloudformation.yaml'), - include: ['/**'], + include: ['/**'], exclude: ['flow-typed/**', 'typings/**'], }, configSchema: {