Seperate Package.JSON for Front End And Netlify Lambda Functions?

As there are different npm dependencies for the front end and lambda functions, shouldn’t there be seperate package.json for both? If so what is the recommended way of doing it?

I believe you can if you want. If you have your functions in ./functions, you can run npm init in the functions directory and it will be picked up by the functions. I believe functions look in their immediate folder for a package.json file and then move up parent folders until one is found.

1 Like