Skip to content

Commit

Permalink
Add sitemap (#1583)
Browse files Browse the repository at this point in the history
* add sitemap

* add config
  • Loading branch information
tiffanyqi authored Oct 31, 2024
1 parent 0b9d331 commit e4b312e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 29 deletions.
5 changes: 5 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.SITE_URL || `https://docs.mixpanel.com`,
generateRobotsTxt: true,
};
94 changes: 65 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"api:publish": "node ./openapi/publish.js",
"api:test": "./openapi/test.sh",
"build": "next build",
"postbuild": "next-sitemap",
"dev": "next dev",
"spelling": "cspell '**/*.md*'",
"start": "next start",
Expand All @@ -28,6 +29,7 @@
"@docsearch/react": "^3.6.1",
"clsx": "^2.1.1",
"next": "^14.2.8",
"next-sitemap": "^4.2.3",
"nextra": "3.0.3",
"nextra-theme-docs": "3.0.3",
"react": "^18.3.1",
Expand Down

0 comments on commit e4b312e

Please sign in to comment.