Using database-js to test Lambda function locally

So... I have a lambda function which should connect to Planetscale on prod. When developing locally, I want to connect to my localhost database. I also test my lambda function locally using serverless invoke local (https://www.serverless.com/framework/docs/providers/aws/cli-reference/invoke-local). Am I choosing the wrong approach here? How do you test your Lambda functions locally?
0 Replies
No replies yetBe the first to reply to this messageJoin