Functions let you build dynamic applications without running servers. Submit forms, authenticate users, securely connect to external services, build GraphQL/REST APIs, and more.
Functions are a simpler way to build APIs for your Gatsby site as you develop, test, and deploy them alongside your frontend code. Managed Serverless infrastructure means simple operations and effortless scaling.
Running serverless functions on Gatsby Cloud is as easy as deploying your Gatsby project. Read more about deploying on Gatsby Cloud.
All serverless functions are served on the route of the build that they are built with including preview urls, build urls, and production urls on Hosting.
Functions are currently in beta and can be enabled by adding the
FUNCTIONS flag to your
gatsby-config.js to sites running Gatsby 3.4 and above. Learn more and join the discussion.