Viswa
06/02/2022, 9:28 PMDerek Kershner
06/03/2022, 2:30 AMViswa
06/03/2022, 4:58 AMFrank
Frank
Klaus
06/04/2022, 8:03 PMsst deploy
as the final stage of development that will upload your real code to run in the lamdba environment. Once in Lamdba, the code runs in it's own container on AWS where you don't have debug access any longer.
What benefit would the source map on your machine bring at this stage? Or is this for a frontend deployment somehow?
For backend cases while you are still developing / debugging the function, only a stub that forwards the request from lambda to your local machine is being uploaded. This live reload option then works directly with your local code (which isn't packaged up at that stage).Viswa
06/06/2022, 2:36 AMsst deploy
. I don't have any issues with the source map on my machine.
I was wondering if there is a way to disable source maps from getting deployed to AWS as part of lambda function. By default, for a nodejs lambda the zip package includes lambda-function.js as well as lambda-function.js.map.
And this source map almost doubles the size of lambda function and that increases the cold start time. So, my question is when I do ss deploy
only lambda-function.js should be packaged into the zip file that gets deployed to the AWS.
Hope this helps!thdxr
06/06/2022, 2:37 AMthdxr
06/06/2022, 2:38 AMViswa
06/06/2022, 2:54 AMthdxr
06/06/2022, 3:05 AMKlaus
06/06/2022, 6:45 PMViswa
06/06/2022, 9:26 PMDrew
06/12/2022, 2:26 AMDrew
06/12/2022, 2:27 AM