Skip to content

Commit 4d4a7ab

Browse files
authored
feat(gatsby-plugin-canonical-urls): Add plugin validation (#29688)
1 parent 5de8562 commit 4d4a7ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
exports.pluginOptionsSchema = ({ Joi }) =>
2+
Joi.object({
3+
siteUrl: Joi.string()
4+
.required()
5+
.description(`The full URL for the site e.g. https://www.example.com`),
6+
stripQueryString: Joi.boolean().description(
7+
`Enables stripQueryString to strip query strings from paths e.g. /blog?tag=foobar becomes /blog.`
8+
),
9+
})

0 commit comments

Comments
 (0)