Skip to content

Commit

Permalink
Add sitemap generation
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Apr 16, 2024
1 parent d60f8a5 commit 9b2ff79
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ build/*
node_modules/*
.vercel
.next

# Generated
public/robots.txt
public/sitemap-0.xml
public/sitemap.xml
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts=true
6 changes: 6 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: 'https://authzed.com/docs',
generateRobotsTxt: true,
// ...other options
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start"
},
"bugs": {
Expand All @@ -23,6 +24,7 @@
"clsx": "^2.1.0",
"js-yaml": "^4.1.0",
"next": "^13.5.6",
"next-sitemap": "^4.2.3",
"nextra": "^2.13.3",
"nextra-theme-docs": "^2.13.3",
"react": "^18.2.0",
Expand Down
43 changes: 25 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b2ff79

Please sign in to comment.