Skip to content

Commit fd95954

Browse files
authored
Add next-sitemap (#200)
1 parent d8f3c35 commit fd95954

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

next-sitemap.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
export default {
3+
siteUrl: process.env.SITE_URL || "https://docs.arcade.dev",
4+
generateRobotsTxt: true,
5+
sitemapSize: 3000,
6+
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"lint": "next lint",
1111
"lint:fix": "next lint --fix",
1212
"prettier": "prettier --write \"*/**/*.{js,jsx,json,ts,tsx,css,md}\"",
13-
"prepare": "husky install"
13+
"prepare": "husky install",
14+
"postbuild": "next-sitemap"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -35,6 +36,7 @@
3536
"framer-motion": "^11.16.0",
3637
"lucide-react": "^0.469.0",
3738
"next": "^15.1.3",
39+
"next-sitemap": "^4.2.3",
3840
"next-themes": "^0.4.4",
3941
"nextra": "^3.3.1",
4042
"nextra-theme-docs": "^3.3.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)