- Site name: feature-lean-package-updates–marketing-payload.netlify.app
- DNS issues: No DNS issues
- Build problems: The app builds without issues, but when deployed I get the “error decoding lambda response: error decoding lambda response: unexpected end of JSON input” error.
I have browsed similar issues but I am yet to find a solutions.
I am deploying my Payload CMS app from inside an NX monorepo. The monorepo contains another NextJS project, which is my frontend. The frontend deploys and displays without any issues. Both of them are configured to build and deploy in the same way.
I do think it might be something to do with how / where the functions are deployed to, but I am uncertain on what the config for it should be. This is my current config:
I have also tried to set the functions directory to netlify/functions, apps/backend and also tried to leave it blank.
I can see some errors in the logs
This happens on my branch deploy. I have updated a bunch of packages and wanted to test them on a branch deploy.