Skip to content

Commit 42cf16e

Browse files
authored
fix canonical (graphql#1583)
1 parent 31e6161 commit 42cf16e

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Diff for: gatsby-config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ const config: GatsbyConfig = {
6666
trackingId: "UA-44373548-16",
6767
},
6868
},
69+
{
70+
resolve: "gatsby-plugin-canonical-urls",
71+
options: {
72+
siteUrl: "https://graphql.org",
73+
stripQueryString: true,
74+
},
75+
},
6976
{
7077
resolve: "gatsby-plugin-feed",
7178
options: {

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"eslint-plugin-tailwindcss": "3.12.0",
6868
"gatsby-plugin-postcss": "6.10.0",
6969
"gatsby-plugin-svgr": "^3.0.0-beta.0",
70+
"gatsby-plugin-canonical-urls": "5.12.0",
7071
"postcss": "8.4.23",
7172
"prettier": "2.8.8",
7273
"tailwindcss": "3.3.2",

Diff for: yarn.lock

+7
Original file line numberDiff line numberDiff line change
@@ -6566,6 +6566,13 @@ [email protected]:
65666566
dependencies:
65676567
scroll-to-element "^2.0.3"
65686568

6569+
6570+
version "5.12.0"
6571+
resolved "https://registry.yarnpkg.com/gatsby-plugin-canonical-urls/-/gatsby-plugin-canonical-urls-5.12.0.tgz#7526650cb6542870a3bc78749295102b820e7d34"
6572+
integrity sha512-A/PbUjDJOMHTAnM28o1xmBILJ8shpRJT9kud69zEgqxBpjKkKEVhtUTsvetvHkdhzjWuSwxIW9q/B4uBi/C3wg==
6573+
dependencies:
6574+
"@babel/runtime" "^7.20.13"
6575+
65696576
gatsby-plugin-dynamic-open-graph-images@^1.1.4:
65706577
version "1.1.4"
65716578
resolved "https://registry.yarnpkg.com/gatsby-plugin-dynamic-open-graph-images/-/gatsby-plugin-dynamic-open-graph-images-1.1.4.tgz#b7141200e0a42f3c4afe0d9f25bc0f4a5bdab6b4"

0 commit comments

Comments
 (0)