Skip to content

Commit

Permalink
Added sitemap with robots.txt file.
Browse files Browse the repository at this point in the history
Added a simple sitemap with robots.txt file.

Resolves #2
  • Loading branch information
Bowens20832 committed May 18, 2023
1 parent 60b1974 commit c2025a2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
5 changes: 5 additions & 0 deletions source/elegant/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.NEXT_PUBLIC_APP_URL,
generateRobotsTxt: true
};
49 changes: 46 additions & 3 deletions source/elegant/package-lock.json

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

4 changes: 3 additions & 1 deletion source/elegant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"export": "next build && next export",
"test": "jest --watch --verbose ./__tests__ ./src",
Expand All @@ -26,6 +27,7 @@
"elegant-cli": "^2.1.1",
"next": "^12.3.1",
"next-seo": "^6.0.0",
"next-sitemap": "^4.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2"
Expand Down Expand Up @@ -121,4 +123,4 @@
"unist-util-visit": "^2.0.3",
"zustand": "^4.0.0-rc.0"
}
}
}

0 comments on commit c2025a2

Please sign in to comment.