Recommended for you: Redirects & rewrites
Manage traffic to your site by defining custom redirect or rewrite rules.
Serverless functions open a world of possibilities for running on-demand, server-side code without having to run a dedicated server. However, managing service discovery, configuring API gateways, and coordinating deployments between your app and your functions can quickly become overwhelming.
With Netlify Functions, your serverless functions are version-controlled, built, and deployed along with the rest of your Netlify site, and we will automatically handle service discovery through our built-in API gateway. This eliminates overhead and brings the power of Deploy Previews and rollbacks to your functions.
For longer-running function tasks, Background Functions allow for extended execution time using asynchronous invocation.
Currently, you can deploy functions built with TypeScript, JavaScript, and Go.
Functions deployed from Netlify are immutable. This means that an update to a function on your production branch won’t change the version that was deployed in a branch deploy, or in a Deploy Preview. You can access all versions of your functions in the Netlify web interface, under the Functions tab.
By default, the list displays all of the functions, including background functions, in the current published deploy. To find functions on another deploy, you can use the search field at the top of the list. You can start typing to jump to a particular branch, or find a Deploy Preview by number.
By default, all functions are deployed with:
If you want to deploy your functions on different AWS regions, tweak memory or execution time limits, or deploy functions onto your own AWS account (in order to integrate with other AWS services on your account), please contact sales.
For example, the maximum execution limit supported for synchronous functions on certain plans is 26 seconds.
Recommended for you: Redirects & rewrites
Manage traffic to your site by defining custom redirect or rewrite rules.
Recommended for you: Edge Functions
Connect your project with an open runtime standard at the network edge, allowing fast, personalized web experiences in a dev ecosystem.
Optional configuration for functions: Directory
Optional configuration for functions: Directory
Optional configuration for functions: Node.js version for runtime
Create functions: JavaScript synchronous function format
Create functions: Test locally
Create functions: Test locally
Create functions: Test locally
Create functions: Go synchronous function format
Create functions: Access the ClientContext
Your feedback helps us improve our docs.