@@ -34,8 +34,8 @@ export function resolveSiteUrl(data) {
3434 if ( ! data ?. site ?. siteMetadata ?. siteUrl ) {
3535 throw Error (
3636 `\`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
3939 `
4040 )
4141 }
@@ -56,8 +56,8 @@ export function resolvePagePath(page) {
5656 if ( ! page ?. path ) {
5757 throw Error (
5858 `\`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
6161 `
6262 )
6363 }
@@ -78,8 +78,8 @@ export function resolvePages(data) {
7878 if ( ! data ?. allSitePage ?. nodes ) {
7979 throw Error (
8080 `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
8383 `
8484 )
8585 }
@@ -109,8 +109,8 @@ export function defaultFilterPages(
109109 if ( typeof excludedRoute !== `string` ) {
110110 throw new Error (
111111 `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
114114 `
115115 )
116116 }
@@ -203,9 +203,9 @@ export function pageFilter({ allPages, filterPages, excludes }) {
203203 } catch {
204204 throw new Error (
205205 `${ 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+ `
209209 )
210210 }
211211 } )
0 commit comments