---
title: "How to Enable Gatsby Functions on Netlify"
description: "Try out new Gatsby Functions on Netlify with this early release of the Essential Gatsby plugin, which includes support for incremental builds and image caching."
source: "https://www.netlify.com/blog/2021/06/03/how-to-enable-gatsby-functions-on-netlify/"
last_updated: "2026-07-10T21:15:24.000Z"
---
Starting today, you can try out new Gatsby Functions on Netlify using an early release of the Essential Gatsby plugin!

We’re excited to give you a first look at this new plugin which includes support for Gatsby Functions, incremental builds, and image caching.

## Here’s how to get started with the Essential Gatsby plugin

First, install the plugin in your Gatsby site as a dev dependency:

```
npm install -D @netlify/plugin-gatsby
```

Next, add the plugin to your `netlify.toml`:

```
[[plugins]]package = "@netlify/plugin-gatsby"
```

Commit these changes, push to your repo, and Netlify will rebuild your site with full [Gatsby Functions](https://github.com/gatsbyjs/gatsby/discussions/30735) support!

> Note: most Netlify plugins are available for one-click install with the in-app Plugins directory. This new plugin hasn’t been published to the directory yet, so you’ll need to install it directly with npm instead of through the Netlify UI.

## See Gatsby Functions in action on Netlify

Gatsby Functions provide access to serverless functions within the Gatsby file structure. This allows you to quickly set up a serverless API for your Gatsby sites. For example, you can create a file in your Gatsby site at `/src/api/hello-world.js` with the following content:

```
export default function handler(req, res) {  res.status(200).json({ hello: `world` })}
```

This will be available at the route `https://[YOUR_GATSBY_SITE].netlify.app/api/hello-world` and return the JSON `{“hello”:”world”}`.

To see Gatsby Functions fully supported on Netlify, check out the demo site:

-   Demo site: [https://netlify-plugin-gatsby-demo.netlify.app/](https://netlify-plugin-gatsby-demo.netlify.app/)
-   Source code: [https://github.com/netlify/netlify-plugin-gatsby/tree/main/demo](https://github.com/netlify/netlify-plugin-gatsby/tree/main/demo)

This site shows Gatsby Functions fully supported on Netlify using the Essential Gatsby plugin, and the source code is a great starting point for learning how Gatsby Functions can work!

## Try out the Essential Gatsby plugin and send feedback

Building a brand new Gatsby project on Netlify? We suggest you use the new Essential Gatsby plugin! This plugin is officially supported by Netlify and makes Gatsby work on Netlify “out of the box.”

Currently using the legacy Gatsby cache plugin ([netlify-plugin-gatsby-cache](https://github.com/jlengstorf/netlify-plugin-gatsby-cache#readme)) on your site? We recommend you [uninstall it](https://docs.netlify.com/configure-builds/build-plugins/#remove-a-plugin) and make the switch to the newer, officially supported Essential Gatsby plugin.

Here’s how to uninstall the legacy Gatsby cache plugin:

If you installed the Gatsby cache plugin through the Netlify UI, you can navigate to **Sites > Plugins** and then find the Gatsby cache plugin from your list of installed plugins. Then, click **Options > Uninstall** plugin to remove it.

Otherwise, you will need to remove the Gatsby cache plugin from your `netlify.toml` file and run `npm uninstall netlify-plugin-gatsby-cache` before installing the new Essential Gatsby plugin.

Once you get the new plugin running, please send us your feedback! You can open issues or discussions on the plugin repo and help us make Netlify’s Gatsby support even better!

-   Plugin repository: [https://github.com/netlify/netlify-plugin-gatsby](https://github.com/netlify/netlify-plugin-gatsby)
-   Package on npm: [https://www.npmjs.com/package/@netlify/plugin-gatsby](https://www.npmjs.com/package/@netlify/plugin-gatsby)
-   Gatsby Functions docs: [https://www.gatsbyjs.com/docs/how-to/functions/](https://www.gatsbyjs.com/docs/how-to/functions/)

We can’t wait to see what you’ll build!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=How to enable Gatsby Functions on Netlify&url=https://www.netlify.com/blog/2021/06/03/how-to-enable-gatsby-functions-on-netlify//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F06%2F03%2Fhow-to-enable-gatsby-functions-on-netlify%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/06/03/how-to-enable-gatsby-functions-on-netlify//)
-   [Bluesky](https://bsky.app/intent/compose?text=How to enable Gatsby Functions on Netlify+https://www.netlify.com/blog/2021/06/03/how-to-enable-gatsby-functions-on-netlify//)

* * *

### Tags

-   [Gatsby](/blog/tags/gatsby/)
-   [Build Plugins](/blog/tags/build-plugins/)
-   [Serverless functions](/blog/tags/serverless-functions/)
-   [incremental builds](/blog/tags/incremental-builds/)
-   [image caching](/blog/tags/image-caching/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

Tools & Services March 1, 2021

[

### Netlify Build Plugin of the Week: Gatsby Cache Plugin

](/blog/2021/03/01/netlify-build-plugin-of-the-week-gatsby-cache-plugin)

-   ![Profile picture of Netlify team](/_astro/2ded7a52db41c7613be0baa648ac9bf9c1e8a985-300x300_DNhVu.svg)
    
    Netlify team
    

![](/images/blog-fallback-thumbnail.svg)

Opinions & Insights March 8, 2021

[

### Incremental Static Regeneration: Its Benefits and Its Flaws

](/blog/2021/03/08/incremental-static-regeneration-its-benefits-and-its-flaws)

-   ![Profile picture of Cassidy Williams](/_astro/a62099fab0f946e063c4b84ff4b4d9c94f9aa7a5-400x400_ZdakPa.webp)
    
    Cassidy Williams
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)