@@ -34,8 +34,8 @@ export function resolveSiteUrl(data) {
34
34
if ( ! data ?. site ?. siteMetadata ?. siteUrl ) {
35
35
throw Error (
36
36
`\`siteUrl\` does not exist on \`siteMetadata\` in the data returned from the query.
37
- Add this to your custom query or provide a custom \`resolveSiteUrl\` function.
38
- https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
37
+ Add this to your \`siteMetadata\` object inside gatsby-config.js or add this to your custom query or provide a custom \`resolveSiteUrl\` function.
38
+ https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
39
39
`
40
40
)
41
41
}
@@ -56,8 +56,8 @@ export function resolvePagePath(page) {
56
56
if ( ! page ?. path ) {
57
57
throw Error (
58
58
`\`path\` does not exist on your page object.
59
- Make the page URI available at \`path\` or provide a custom \`resolvePagePath\` function.
60
- https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
59
+ Make the page URI available at \`path\` or provide a custom \`resolvePagePath\` function.
60
+ https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
61
61
`
62
62
)
63
63
}
@@ -78,8 +78,8 @@ export function resolvePages(data) {
78
78
if ( ! data ?. allSitePage ?. nodes ) {
79
79
throw Error (
80
80
`Page array from \`query\` wasn't found at \`data.allSitePage.nodes\`.
81
- Fix the custom query or provide a custom \`resolvePages\` function.
82
- https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
81
+ Fix the custom query or provide a custom \`resolvePages\` function.
82
+ https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
83
83
`
84
84
)
85
85
}
@@ -109,8 +109,8 @@ export function defaultFilterPages(
109
109
if ( typeof excludedRoute !== `string` ) {
110
110
throw new Error (
111
111
`You've passed something other than string to the exclude array. This is supported, but you'll have to write a custom filter function.
112
- Ignoring the input for now: ${ JSON . stringify ( excludedRoute , null , 2 ) }
113
- https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
112
+ Ignoring the input for now: ${ JSON . stringify ( excludedRoute , null , 2 ) }
113
+ https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
114
114
`
115
115
)
116
116
}
@@ -203,9 +203,9 @@ export function pageFilter({ allPages, filterPages, excludes }) {
203
203
} catch {
204
204
throw new Error (
205
205
`${ REPORTER_PREFIX } Error in custom page filter.
206
- If you've customized your excludes you may need to provide a custom "filterPages" function in your config.
207
- https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
208
- `
206
+ If you've customized your excludes you may need to provide a custom "filterPages" function in your config.
207
+ https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
208
+ `
209
209
)
210
210
}
211
211
} )
0 commit comments