From 9a1f3c46fd6d9a9a4416bbf3a19f6066d1f1d654 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Thu, 5 Oct 2023 17:27:09 +0200 Subject: [PATCH 1/2] try --- gatsby-config.ts | 7 +++++++ package.json | 1 + yarn.lock | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/gatsby-config.ts b/gatsby-config.ts index 776e10a1e9..e0fcaef3ae 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -66,6 +66,13 @@ const config: GatsbyConfig = { trackingId: "UA-44373548-16", }, }, + { + resolve: 'gatsby-plugin-canonical-urls', + options: { + siteUrl: 'https://graphql.org', + stripQueryString: true, + }, + }, { resolve: "gatsby-plugin-feed", options: { diff --git a/package.json b/package.json index ce920501f6..8d4557cc0c 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "eslint-plugin-tailwindcss": "3.12.0", "gatsby-plugin-postcss": "6.10.0", "gatsby-plugin-svgr": "^3.0.0-beta.0", + "gatsby-plugin-canonical-urls": "5.12.0", "postcss": "8.4.23", "prettier": "2.8.8", "tailwindcss": "3.3.2", diff --git a/yarn.lock b/yarn.lock index 427ae96adf..3421c7b35f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6566,6 +6566,13 @@ gatsby-plugin-anchor-links@1.2.1: dependencies: scroll-to-element "^2.0.3" +gatsby-plugin-canonical-urls@5.12.0: + version "5.12.0" + resolved "https://registry.yarnpkg.com/gatsby-plugin-canonical-urls/-/gatsby-plugin-canonical-urls-5.12.0.tgz#7526650cb6542870a3bc78749295102b820e7d34" + integrity sha512-A/PbUjDJOMHTAnM28o1xmBILJ8shpRJT9kud69zEgqxBpjKkKEVhtUTsvetvHkdhzjWuSwxIW9q/B4uBi/C3wg== + dependencies: + "@babel/runtime" "^7.20.13" + gatsby-plugin-dynamic-open-graph-images@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/gatsby-plugin-dynamic-open-graph-images/-/gatsby-plugin-dynamic-open-graph-images-1.1.4.tgz#b7141200e0a42f3c4afe0d9f25bc0f4a5bdab6b4" From a09abcd911d082387c5c8c60e2487cd057fe66ec Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Thu, 5 Oct 2023 21:27:21 +0200 Subject: [PATCH 2/2] prettier --- gatsby-config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-config.ts b/gatsby-config.ts index e0fcaef3ae..c5ea2cd9db 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -67,9 +67,9 @@ const config: GatsbyConfig = { }, }, { - resolve: 'gatsby-plugin-canonical-urls', + resolve: "gatsby-plugin-canonical-urls", options: { - siteUrl: 'https://graphql.org', + siteUrl: "https://graphql.org", stripQueryString: true, }, },