From 7a076fb4877fb4136eae08b7e924b51faba9b007 Mon Sep 17 00:00:00 2001 From: Daniel Norman Date: Mon, 19 Oct 2020 14:53:44 +0200 Subject: [PATCH] Exclude redirections from sitemap --- gatsby-config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gatsby-config.js b/gatsby-config.js index 5e92b6a82a..419655ce56 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -63,6 +63,13 @@ let plugins = [ resolve: `gatsby-plugin-sitemap`, options: { sitemapSize: 5000, + exclude: [ + // Remove these from sitemap for SEO purposes as they're redirected + `/getting-started/quickstart`, + `/getting-started/setup-prisma/add-to-existing-project`, + `/getting-started/setup-prisma/start-from-scratch-prisma-migrate`, + `/getting-started/setup-prisma/start-from-scratch-sql`, + ] }, }, {