Build Fails – Invalid AWS Lambda parameters?

I ran into this today too, was able to rename a few things and squeak in, but this limit seems really low because:

  1. We can’t specify which env variables go to functions - half of them were not needed, but they all go along
  2. We can’t specify between preview / production env variables, so many of my vars are duplicated with _PREVIEW tacked onto the end.

Would love to see something similar to how Vercel does their env variables.

If anyone wants to know how many chars they have used, (assuming each char is a byte), you can use this code in your console to count:

Array.from(document.querySelectorAll('.floating-labels input')).map(x => x.value).join('').length
1 Like