I believe what you are trying to achieve is not how lambda functions work. I shall point you to these resources:
coelmay
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Building functions using netlify-lambda when deploying via netlify-cli | 9 | 639 | October 23, 2020 | |
| Getting 500 error netlify-lambda function | 4 | 744 | May 22, 2022 | |
| Netlify subdirectory functions issues | 4 | 636 | November 10, 2021 | |
| Using Netlify Dev CLI with unbundled functions and a static site | 2 | 672 | November 1, 2019 | |
| No functions deployed when deploying repo | 4 | 1517 | July 3, 2023 |