serverless-static-hosting-with-basic-auth icon indicating copy to clipboard operation
serverless-static-hosting-with-basic-auth copied to clipboard

Site is included in function code?

Open tdavis opened this issue 6 years ago • 0 comments

First off, thanks for putting this out; it was exactly what I needed! Initially, all was well, but after I added more files to src/, I got an error when deploying the new site (unfortunately, the sync command was not recognized by serverless):

The function code size is larger than the maximum allowed size for functions that are 
triggered by a CloudFront event: 41233321 Max allowed: 1048576

Since I didn't change anything in handler.js in the interim, I can only assume the static site markup is being included in the function payload. While the update failed, the site was still updated, presumably because the S3 sync portion succeeded.

tdavis avatar Mar 21 '18 15:03 tdavis