serverless-static-hosting-with-basic-auth
serverless-static-hosting-with-basic-auth copied to clipboard
Site is included in function code?
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.