Skip to content

Commit

Permalink
feat: added sitemap (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Jun 19, 2024
1 parent fcd66eb commit f68ebc1
Show file tree
Hide file tree
Showing 6 changed files with 508 additions and 2 deletions.
4 changes: 4 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
siteUrl: process.env.SITE_URL || "https://www.zetachain.com/docs/",
generateRobotsTxt: true,
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "zetachain",
"scripts": {
"build": "next build",
"postbuild": "next-sitemap",
"dev": "next dev -p 3001",
"lint:fix": "npx eslint --ext .js,.jsx,.ts,.tsx --fix ./src",
"lint": "npx eslint --ext .js,.jsx,.ts,.tsx ./src",
Expand Down Expand Up @@ -43,6 +44,7 @@
"next": "14.0.4",
"next-redux-wrapper": "8.1.0",
"next-seo": "6.0.0",
"next-sitemap": "^4.2.3",
"nextra": "2.13.4",
"nextra-theme-docs": "2.13.4",
"react": "18.2.0",
Expand Down Expand Up @@ -106,4 +108,4 @@
}
},
"packageManager": "[email protected]+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}
}
9 changes: 9 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *
User-agent: *
Allow: /

# Host
Host: https://www.zetachain.com/docs/

# Sitemaps
Sitemap: https://www.zetachain.com/docs/sitemap.xml
Loading

0 comments on commit f68ebc1

Please sign in to comment.