Skip to content

Commit 0469756

Browse files
committed
Add next-sitemap
1 parent b24aec5 commit 0469756

File tree

4 files changed

+34
-327
lines changed

4 files changed

+34
-327
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: 'https://docs.it-scripts.com/',
4+
generateRobotsTxt: true,
5+
generateIndexSitemap: false,
6+
outDir: './out',
7+
};

package.json

Lines changed: 3 additions & 2 deletions
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",
@@ -21,6 +22,7 @@
2122
"@tabler/icons-react": "^2.46.0",
2223
"autoprefixer": "^10.4.20",
2324
"next": "^13.5.6",
25+
"next-sitemap": "^4.2.3",
2426
"nextra": "^2.12.3",
2527
"nextra-theme-docs": "^2.12.3",
2628
"postcss": "^8.4.45",
@@ -31,7 +33,6 @@
3133
"@types/node": "18.19.8",
3234
"@types/react": "^18.2.48",
3335
"@types/react-dom": "^18.2.18",
34-
"patch-package": "^8.0.0",
3536
"tailwindcss": "^3.4.11",
3637
"typescript": "^5.3.3"
3738
}

0 commit comments

Comments
 (0)