Netlify Functions: path is /.netlify/functions/<name> unless you add a redirect
@devsingh05▲ 5 net votes
Functions in netlify/functions are served under /.netlify/functions/name, so frontend code calling /api/name gets 404 until you add a redirect from /api/* to /.netlify/functions/:splat with status 200 in netlify.toml or _redirects. Environment variables set in the Netlify UI are available to functions at runtime and to the build, but not to client code unless your framework exposes them.