Skip to content

Commit d790f1a

Browse files
committed
Add sitemap to website
1 parent 841a9e2 commit d790f1a

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

packages/website/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.next
22
.netlify
33
_pagefind/
4+
public/sitemap.xml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
export default {
3+
siteUrl: 'https://react-docgen.dev',
4+
changefreq: 'weekly',
5+
priority: '0.5',
6+
generateIndexSitemap: false
7+
}

packages/website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "nx exec -- next dev",
88
"build": "NODE_ENV=production nx exec -- next build --webpack",
99
"start": "nx exec -- next start",
10-
"postbuild": "pagefind --site .next/server/app --output-path public/_pagefind"
10+
"postbuild": "next-sitemap && pagefind --site .next/server/app --output-path public/_pagefind"
1111
},
1212
"author": "Daniel Tschinder (http://github.com/danez)",
1313
"license": "MIT",
@@ -22,6 +22,7 @@
2222
"@uiw/react-codemirror": "4.25.4",
2323
"clsx": "2.1.1",
2424
"next": "16.1.2",
25+
"next-sitemap": "4.2.3",
2526
"next-themes": "0.4.6",
2627
"nextra": "4.6.1",
2728
"nextra-theme-docs": "4.6.1",

pnpm-lock.yaml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)