Here’s a repo I just created to test out a very simple Netlify Lambda function with React.
One thing to note, when I ran the terminal command netlify-lambda serve
to deploy locally, it didn’t seem to work for me.
I added this in my package.json
start:lambda": "netlify-lambda serve functions
then ran this command and it worked beautifully.
npm run start:lambda
Give it a look and see if you can come up with anything!