Skip to content

Commit 837864f

Browse files
committed
feat: sitemap added
1 parent bf34e9a commit 837864f

7 files changed

+641
-9
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

next-sitemap.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: 'https://firecamp.io/docs',
4+
generateRobotsTxt: true, // (optional)
5+
// ...other options
6+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"start": "next start"
8+
"start": "next start",
9+
"postbuild": "next-sitemap"
910
},
1011
"repository": {
1112
"type": "git",
@@ -19,6 +20,7 @@
1920
"homepage": "https://github.com/firecampdev/firecamp#readme",
2021
"dependencies": {
2122
"next": "^13.4.1",
23+
"next-sitemap": "^4.1.3",
2224
"nextra": "latest",
2325
"nextra-theme-docs": "latest",
2426
"react": "^18.2.0",

0 commit comments

Comments
 (0)