Skip to content

Commit

Permalink
fix(lambda): cacheDir should be serverDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd committed Apr 9, 2019
1 parent 96ca9dc commit 021ca5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lambda/lib/aws-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [])],
};

Expand Down
2 changes: 1 addition & 1 deletion packages/lambda/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
stageName: 'prod',
uniqueName: 'hops-lambda-<name>',
cloudformationTemplateFile: path.resolve(__dirname, 'cloudformation.yaml'),
include: ['<cacheDir>/**'],
include: ['<serverDir>/**'],
exclude: ['flow-typed/**', 'typings/**'],
},
configSchema: {
Expand Down

0 comments on commit 021ca5a

Please sign in to comment.