Skip to content

Commit 58aaa7e

Browse files
authored
chore(merge): adding SEO support (#34)
2 parents 6372e55 + b29f09b commit 58aaa7e

18 files changed

+5673
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ yarn-error.log*
3030

3131
# vercel
3232
.vercel
33+
public/robots.txt
34+
public/sitemap*.xml

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
hoist=true
2+
auto-install-peers=true
3+
enable-pre-post-scripts=true

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: process.env.SITE_URL || 'https://metaphore.vercel.app',
4+
generateRobotsTxt: true,
5+
sitemapSize: 1000,
6+
changefreq: 'weekly'
7+
};
8+
9+
module.exports = config;

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"scripts": {
2525
"dev": "next dev -p 2312",
2626
"build": "next build",
27+
"postbuild": "next-sitemap",
2728
"start": "next start",
2829
"lint": "next lint",
2930
"semantic-release": "semantic-release",
@@ -42,6 +43,9 @@
4243
"gray-matter": "^4.0.3",
4344
"lodash": "^4.17.21",
4445
"next": "13.2.3",
46+
"next-seo": "^5.15.0",
47+
"next-share": "^0.19.0",
48+
"next-sitemap": "^4.0.5",
4549
"react": "^18.2.0",
4650
"react-dom": "^18.2.0",
4751
"react-icons": "^4.8.0",

0 commit comments

Comments
 (0)