Hello what is `lambda-code-updater` in NextJs used...
# help
b
Hello what is
lambda-code-updater
in NextJs used for? actually I am getting this recommendation from compute optimizer for this lambda function
f
Hi @Bshr Ramadan, it’s a custom resource for updating the Edge Lambda’s code with the deployed resource value.
For example, if u define
environment
for u
NextjsSite
, the
environment
values might not be available at build time (ie. another construct’s prop). After that construct is deployed, the custom resource updates the code with the deployed value.
is it suggesting to increase the memory?
b
I see Yes it's suggesting to increase memory, the estimated time of execution is less than current one by 2 sec, and cost would be lower a bit.