Skip to content

Commit d196e4f

Browse files
committed
feat: configured sitemap
1 parent d655ddf commit d196e4f

File tree

5 files changed

+55
-2
lines changed

5 files changed

+55
-2
lines changed

next-sitemap.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
siteUrl: process.env.SITE_URL || "https://octasol.io",
3+
generateRobotsTxt: true,
4+
};

package-lock.json

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"postinstall": "prisma generate"
10+
"postinstall": "prisma generate && next-sitemap"
1111
},
1212
"dependencies": {
1313
"@hookform/resolvers": "^3.9.0",
@@ -39,6 +39,7 @@
3939
"lucide-react": "^0.396.0",
4040
"next": "14.2.4",
4141
"next-auth": "^4.24.7",
42+
"next-sitemap": "^4.2.3",
4243
"next-themes": "^0.3.0",
4344
"nodemailer": "^6.9.14",
4445
"pusher": "^5.2.0",

public/robots.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# *
2+
User-agent: *
3+
Allow: /
4+
5+
# Host
6+
Host: https://octasol.io
7+
8+
# Sitemaps
9+
Sitemap: https://octasol.io/sitemap.xml

public/sitemap.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
</sitemapindex>

0 commit comments

Comments
 (0)