Skip to content

Commit

Permalink
feat(gatsby-plugin-canonical-urls): Add plugin validation (#29688)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Feb 22, 2021
1 parent 5de8562 commit 4d4a7ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/gatsby-plugin-canonical-urls/src/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
exports.pluginOptionsSchema = ({ Joi }) =>
Joi.object({
siteUrl: Joi.string()
.required()
.description(`The full URL for the site e.g. https://www.example.com`),
stripQueryString: Joi.boolean().description(
`Enables stripQueryString to strip query strings from paths e.g. /blog?tag=foobar becomes /blog.`
),
})

0 comments on commit 4d4a7ab

Please sign in to comment.