Skip to content

Commit e4b312e

Browse files
authored
Add sitemap (#1583)
* add sitemap * add config
1 parent 0b9d331 commit e4b312e

File tree

3 files changed

+72
-29
lines changed

3 files changed

+72
-29
lines changed

next-sitemap.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: process.env.SITE_URL || `https://docs.mixpanel.com`,
4+
generateRobotsTxt: true,
5+
};

package-lock.json

+65-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"api:publish": "node ./openapi/publish.js",
99
"api:test": "./openapi/test.sh",
1010
"build": "next build",
11+
"postbuild": "next-sitemap",
1112
"dev": "next dev",
1213
"spelling": "cspell '**/*.md*'",
1314
"start": "next start",
@@ -28,6 +29,7 @@
2829
"@docsearch/react": "^3.6.1",
2930
"clsx": "^2.1.1",
3031
"next": "^14.2.8",
32+
"next-sitemap": "^4.2.3",
3133
"nextra": "3.0.3",
3234
"nextra-theme-docs": "3.0.3",
3335
"react": "^18.3.1",

0 commit comments

Comments
 (0)