Netlify Connect /Manage data layers /

Manage connected sites in Netlify Connect

This product is available on Connect Enterprise plans.

Once you create and configure a data layer, you can review and modify the data layer on the settings page in the Netlify UI. This document outlines how to add and remove connected sites for an existing data layer.

Connected sites are sites in your Netlify team that will automatically build and deploy when data changes.

We recommend that you connect any sites that use static site generation (SSG) or cached server-side rendering (SSR) to ensure they always have access to the latest data. If your site uses server-side rendering (SSR) without caching or you plan to query the GraphQL API during runtime using functions or edge functions, you don’t have to connect your site. Learn more about how to access data.

Team Owners and Developers can add or delete connected sites at any time.

Once you connect a site, the build hooks for the site will include a Netlify Connect - Data layer build hook with the data layer ID as the value. This provides a convenient way on the site level to check whether a site is connected to a data layer.

New to Netlify Connect? Set up a data layer first

If you haven’t already created a data layer, navigate to the

page for your team and select Add new data layer. Follow the prompts to configure the data layer and to add data sources, custom webhooks, and connected sites. For more information, refer to our get started with Netlify Connect guide.

# Connect a site

For Netlify to automatically build and deploy your site when data changes, your site must be linked to a Git repository to enable continuous deployment, and it must have active builds.

To connect a site to your data layer:

  1. Navigate to the page for your team in the Netlify UI.
  2. Select the data layer from the Data layers list, and then select Data layer settings.
  3. On the data layer settings page, select Connected sites.
  4. Select Search by site name or domain and start entering the name or domain of the site you want to connect.
  5. When the site appears in the results list, select the site to connect it.

# Disconnect a site

Note that when you disconnect a site, Netlify will no longer automatically build and deploy the site whenever data changes. This may result in inconsistent content.

You can’t disconnect a site by manually deleting the build hooks on the site level. You can only disconnect a site by editing the data layer.

To disconnect a site from your data layer:

  1. Navigate to the page for your team in the Netlify UI.
  2. Select the data layer from the Data layers list, and then select Data layer settings.
  3. On the data layer settings page, select Connected sites.
  4. Find the site you would like to disconnect in the Connected sites list and select Disconnect.
  5. A confirmation prompt will appear. Review the details and then select Disconnect.