We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30b8071 commit 069d1beCopy full SHA for 069d1be
gatsby-config.ts
@@ -50,7 +50,13 @@ module.exports = {
50
`,
51
resolvePages: ({ allSitePage }: { allSitePage: any }) =>
52
allSitePage.nodes,
53
- serialize: ({ path }: { path: any }) => ({ url: path }),
+ serialize: ({ site, allSitePage }: { site: any; allSitePage: any }) => {
54
+ return allSitePage.nodes.map((node: any) => ({
55
+ url: `${site.siteMetadata.siteUrl}${node.path}`,
56
+ lastmod: new Date().toISOString(),
57
+ priority: node.path === "/" ? 1.0 : 0.8,
58
+ }))
59
+ },
60
createLinkInHead: true,
61
},
62
0 commit comments