diff --git a/packages/gatsby-plugin-canonical-urls/src/gatsby-node.js b/packages/gatsby-plugin-canonical-urls/src/gatsby-node.js new file mode 100644 index 0000000000000..7fcf0309ad814 --- /dev/null +++ b/packages/gatsby-plugin-canonical-urls/src/gatsby-node.js @@ -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.` + ), + })