Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


With the release of netlify dev this package should be used anymore.

Netlify Functions allow you to run AWS Lambda functions.

For more details, check out the docs site.


npm install --save gatsby-plugin-netlify-functions

How to use

Add the Netlify Functions plugin in your gatsby-config.js:

plugins: [`gatsby-plugin-netlify-functions`]


Netlify Functions can be configured via the plugin options below. You can learn about how to pass options to plugins in the Gatsby docs.


(required, default: undefined)

Directory of the source of functions


(required, default: undefined)

Directory where to put built functions

plugins: [
    resolve: `gatsby-plugin-netlify-functions`,
    options: {
      functionsSrc: `${__dirname}/src/functions`,
      functionsOutput: `${__dirname}/functions`,


For help with integrating Netlify Functions with Gatsby, check out the community Gitter.

© 2023 Gatsby, Inc.