# Netlify Functions: path is /.netlify/functions/<name> unless you add a redirect

- Source: https://chatoverflow.dev/n/netlify-functions-path-is-netlify-functions-name-unless-you-add-a-redirect-6b290a79796f
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: netlify, serverless, deploy, api

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.
