feat(client): add sitemap generation to next app
This commit is contained in:
parent
30d0151bdb
commit
2cbc582a12
|
@ -0,0 +1,6 @@
|
||||||
|
/** @type {import('next-sitemap').IConfig} */
|
||||||
|
module.exports = {
|
||||||
|
siteUrl: 'https://rxresu.me',
|
||||||
|
changefreq: 'monthly',
|
||||||
|
generateRobotsTxt: true,
|
||||||
|
};
|
|
@ -2,9 +2,10 @@
|
||||||
"name": "@reactive-resume/client",
|
"name": "@reactive-resume/client",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "react-env --prefix PUBLIC -- next dev",
|
"dev": "react-env --prefix PUBLIC -- next dev",
|
||||||
"build": "next build",
|
"build": "next build && npm run sitemap",
|
||||||
"start": "react-env --prefix PUBLIC -- next start",
|
"start": "react-env --prefix PUBLIC -- next start",
|
||||||
"lint": "next lint --fix"
|
"lint": "next lint --fix",
|
||||||
|
"sitemap": "next-sitemap --config next-sitemap.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@beam-australia/react-env": "^3.1.1",
|
"@beam-australia/react-env": "^3.1.1",
|
||||||
|
@ -67,6 +68,7 @@
|
||||||
"autoprefixer": "^10.4.2",
|
"autoprefixer": "^10.4.2",
|
||||||
"eslint": "^8.10.0",
|
"eslint": "^8.10.0",
|
||||||
"eslint-config-next": "12.1.0",
|
"eslint-config-next": "12.1.0",
|
||||||
|
"next-sitemap": "^2.5.7",
|
||||||
"postcss": "^8.4.8",
|
"postcss": "^8.4.8",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"sass": "^1.49.9",
|
"sass": "^1.49.9",
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
# *
|
||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
# Host
|
||||||
|
Host: https://rxresu.me
|
||||||
|
|
||||||
|
# Sitemaps
|
||||||
|
Sitemap: https://rxresu.me/sitemap.xml
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
||||||
|
<url><loc>https://rxresu.me</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/dashboard</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/meta/privacy</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/meta/service</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/de/dashboard</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/kn/dashboard</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/ta/dashboard</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/hi/dashboard</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/de</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/kn</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/ta</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
<url><loc>https://rxresu.me/hi</loc><changefreq>monthly</changefreq><priority>0.7</priority><lastmod>2022-03-12T10:44:13.581Z</lastmod></url>
|
||||||
|
</urlset>
|
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
<sitemap><loc>https://rxresu.me/sitemap-0.xml</loc></sitemap>
|
||||||
|
</sitemapindex>
|
|
@ -75,6 +75,7 @@ importers:
|
||||||
nanoid: ^3.3.1
|
nanoid: ^3.3.1
|
||||||
next: 12.1.0
|
next: 12.1.0
|
||||||
next-i18next: ^10.5.0
|
next-i18next: ^10.5.0
|
||||||
|
next-sitemap: ^2.5.7
|
||||||
postcss: ^8.4.8
|
postcss: ^8.4.8
|
||||||
prettier: ^2.5.1
|
prettier: ^2.5.1
|
||||||
react: '>=17'
|
react: '>=17'
|
||||||
|
@ -162,6 +163,7 @@ importers:
|
||||||
autoprefixer: 10.4.2_postcss@8.4.8
|
autoprefixer: 10.4.2_postcss@8.4.8
|
||||||
eslint: 8.10.0
|
eslint: 8.10.0
|
||||||
eslint-config-next: 12.1.0_4c2038871e8233f2b143838d68f90b16
|
eslint-config-next: 12.1.0_4c2038871e8233f2b143838d68f90b16
|
||||||
|
next-sitemap: 2.5.7_next@12.1.0
|
||||||
postcss: 8.4.8
|
postcss: 8.4.8
|
||||||
prettier: 2.5.1
|
prettier: 2.5.1
|
||||||
sass: 1.49.9
|
sass: 1.49.9
|
||||||
|
@ -1901,6 +1903,10 @@ packages:
|
||||||
dev: true
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@corex/deepmerge/2.6.148:
|
||||||
|
resolution: {integrity: sha512-6QMz0/2h5C3ua51iAnXMPWFbb1QOU1UvSM4bKBw5mzdT+WtLgjbETBBIQZ+Sh9WvEcGwlAt/DEdRpIC3XlDBMA==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@cspotcode/source-map-consumer/0.8.0:
|
/@cspotcode/source-map-consumer/0.8.0:
|
||||||
resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==}
|
resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==}
|
||||||
engines: {node: '>= 12'}
|
engines: {node: '>= 12'}
|
||||||
|
@ -10180,6 +10186,18 @@ packages:
|
||||||
- react-native
|
- react-native
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/next-sitemap/2.5.7_next@12.1.0:
|
||||||
|
resolution: {integrity: sha512-snyIWKwzy4QfLrZmXk2fT7ue5RYc1GNqrMfvC/VQJWyPX5QRZnYJLVScd9jmfdVlN5l6M5sFY3VSuFmCQUZ5Vg==}
|
||||||
|
engines: {node: '>=14.18.3'}
|
||||||
|
hasBin: true
|
||||||
|
peerDependencies:
|
||||||
|
next: '*'
|
||||||
|
dependencies:
|
||||||
|
'@corex/deepmerge': 2.6.148
|
||||||
|
minimist: 1.2.5
|
||||||
|
next: 12.1.0_b8b2418670651b634ff05a91b7cd94fe
|
||||||
|
dev: true
|
||||||
|
|
||||||
/next/12.1.0_b8b2418670651b634ff05a91b7cd94fe:
|
/next/12.1.0_b8b2418670651b634ff05a91b7cd94fe:
|
||||||
resolution: {integrity: sha512-s885kWvnIlxsUFHq9UGyIyLiuD0G3BUC/xrH0CEnH5lHEWkwQcHOORgbDF0hbrW9vr/7am4ETfX4A7M6DjrE7Q==}
|
resolution: {integrity: sha512-s885kWvnIlxsUFHq9UGyIyLiuD0G3BUC/xrH0CEnH5lHEWkwQcHOORgbDF0hbrW9vr/7am4ETfX4A7M6DjrE7Q==}
|
||||||
engines: {node: '>=12.22.0'}
|
engines: {node: '>=12.22.0'}
|
||||||
|
|
Loading…
Reference in New Issue