NestJS application configuration for Netlify redirect not working

Hi Netlify,

We have an API app with NestJS that is part of monorepo and reffers to some packages from monorepo.
Here is our toml file:
[[redirects]]
from = “/*”
to = “/api/main”
status = 200
force = true

[[headers]]
for = “/"
[headers.values]
Access-Control-Allow-Origin = "

However after deployment URLs are not working and it’s showing 404 and also there is no any function being identified by Netlify.
Our netlify app is smart-bazar-api and for comparison we have this app in vercel and there it’s working fine.

Does NestJS work with AWS Lambda? I’m trying to setup a minimal example but my lack of expertise in that framework is not allowing me to do it within a short time. If you have a minimal example, I can take a look at that.

NestJS has support for aws lambda Documentation | NestJS - A progressive Node.js framework
main point is that we have a monorepo app with yarn. here is a minimal code for reproduction: GitHub - azar-altudo/netlify-mono-nest: Netlify Monorepo with NextJS and NestJS

Using Netlify CLI locally it’s showing 404, same as on Netlify. I have tried to create a Netlify function as well but in that case netlify dev command fails because it can’t resolve the modules.

Your example doesn’t seem to be one for AWS Lambda. It seems to be for a generic NestJS app. I’d need one for AWS Lambda to make it work on Netlify.