Deploy Nestjs to Netlify

I have Nestjs App with Api however, deploying nestjs to netlify is not straight forward. I have followed multiples posts like below:
Deployment procedure for NestJS - Support - Netlify Support Forums
Deploy nestJS server as Serverless function - Support - Netlify Support Forums
Deploy nestJS server as Serverless function - Support - Netlify Support Forums

I created the main.ts in /netlify/functions and created netlify.toml with following:

[build]
command = “npm run build”
publish = “dist/src”
functions = “dist/netlify/functions”

[[redirects]]
from = “/*”
to = “/”
status = 200

However, it is giving 404 all the time. I am using netlify cli to run on my local and .netlify folder looks like below:


I am not able to see any functions folder inside .netlify.

Please help me with deploying my nestjs on netlify. Our netlify app is smart-bazar-api and for comparison we have this app in vercel and there it’s working fine.

Duplicate of: NestJS application configuration for Netlify redirect not working. If you or the other person can provide me with a minimal setup for AWS Lambda, I can try to get it work on Netlify.