Skip to content

Commit 833823c

Browse files
committed
feat(sitemap): add sitemap to output
1 parent f97c6c9 commit 833823c

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed

next-sitemap.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
const config = {
3+
siteUrl: 'https://connectbot.org',
4+
generateRobotsTxt: true,
5+
outDir: './out',
6+
exclude: ['/icon.png'],
7+
};
8+
9+
export default config;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "next start",
1010
"lint": "eslint .",
1111
"lint:fix": "eslint . --fix",
12-
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && cp out/404/index.html out/404.html"
12+
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && cp out/404/index.html out/404.html && next-sitemap"
1313
},
1414
"dependencies": {
1515
"next": "^16.1.2",
@@ -39,6 +39,7 @@
3939
"eslint-plugin-react-refresh": "^0.4.26",
4040
"knip": "^5.81.0",
4141
"lefthook": "^2.0.15",
42+
"next-sitemap": "^4.2.3",
4243
"pagefind": "^1.4.0",
4344
"typescript": "^5.9.3"
4445
}

0 commit comments

Comments
 (0)