Skip to content

Commit

Permalink
added sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Neobii committed Feb 4, 2021
1 parent 29b20a4 commit 39555b6
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"debug": "NODE_OPTIONS='--inspect' next",
"build": "next build",
"start": "next start",
"postbuild": "next-sitemap --config vulcan-next-sitemap.js",
"test": "npm run test:unit && npm run test:e2e",
"clean": "rm -Rf ./dist # clean various build folders",
"postinstall": "",
Expand Down Expand Up @@ -76,6 +77,7 @@
"next-connect": "^0.9.1",
"next-i18next": "^5.1.0",
"next-mdx-enhanced": "^4.0.0",
"next-sitemap": "^1.4.17",
"passport": "^0.4.1",
"passport-local": "1.0.0",
"polished": "^3.6.5",
Expand Down
14 changes: 14 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# *
User-agent: *
Disallow: /vns/*
Disallow: /login
Disallow: /profile
Disallow: /signup
Disallow: /admin
Disallow: /auth

# Host
Host: https://vulcan.next

# Sitemaps
Sitemap: https://vulcan.next/sitemap.xml
11 changes: 11 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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://vulcan.next</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/contributing</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/features</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/from-vulcan-v1</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/learnings</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/recipes</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
<url><loc>https://vulcan.next/docs/release-process</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2021-02-04T08:22:19.495Z</lastmod></url>
</urlset>
14 changes: 14 additions & 0 deletions vulcan-next-sitemap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
siteUrl: 'https://vulcan.next',
generateRobotsTxt: true,
//outDir: './out/', for static builds
exclude: ['/vns/*', '/login', '/profile', '/signup', '/admin', '/auth'],
robotsTxtOptions: {
policies: [
{
userAgent: '*',
disallow: ['/vns/*', '/login', '/profile', '/signup', '/admin', '/auth'],
},
]
}
}
26 changes: 26 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2234,6 +2234,11 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@corex/deepmerge@^2.5.3":
version "2.5.3"
resolved "https://registry.yarnpkg.com/@corex/deepmerge/-/deepmerge-2.5.3.tgz#ecdb8e4c0617ada2a5af0c0400f56562d1f0ea31"
integrity sha512-9q+jWQ6zqBc7iU2ItxYcoA+G/QUxPt0eo7d3PVNy30HOCpIEX/oZPmtoC3+XSJNyHdV39MGrq+EIpVh81jcapw==

"@cypress/[email protected]":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@cypress/browserify-preprocessor/-/browserify-preprocessor-3.0.0.tgz#2d1fa6a96ed7130a1b172c540448a5955cbc1264"
Expand Down Expand Up @@ -8885,6 +8890,11 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=

escape-string-regexp@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==

escodegen@^1.12.0, escodegen@^1.14.1:
version "1.14.3"
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
Expand Down Expand Up @@ -12654,6 +12664,13 @@ markdown-to-jsx@^6.11.4:
prop-types "^15.6.2"
unquote "^1.1.0"

matcher@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/matcher/-/matcher-3.0.0.tgz#bd9060f4c5b70aa8041ccc6f80368760994f30ca"
integrity sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==
dependencies:
escape-string-regexp "^4.0.0"

material-colors@^1.2.1:
version "1.2.6"
resolved "https://registry.yarnpkg.com/material-colors/-/material-colors-1.2.6.tgz#6d1958871126992ceecc72f4bcc4d8f010865f46"
Expand Down Expand Up @@ -13288,6 +13305,15 @@ next-mdx-enhanced@^4.0.0:
prebuild-webpack-plugin "1.1.1"
stringify-object "^3.3.0"

next-sitemap@^1.4.17:
version "1.4.17"
resolved "https://registry.yarnpkg.com/next-sitemap/-/next-sitemap-1.4.17.tgz#24bb24105f59383ff0145b89a771849e3babbb5b"
integrity sha512-+y1RxdH/O4O2TifaNDQPmIU4h9gFxqJrul2CN+Qx/ziBEyIrWumSgb6XfMquEpwfdq/ZtjD1TfxdRujyyHDybQ==
dependencies:
"@corex/deepmerge" "^2.5.3"
matcher "^3.0.0"
minimist "^1.2.5"

next-tick@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
Expand Down

0 comments on commit 39555b6

Please sign in to comment.