Skip to content

Commit

Permalink
documentation, gitignore, and whitelist option for next-sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Neobii committed Feb 4, 2021
1 parent 39555b6 commit ab34731
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ storybook-static
# mdx enhanced
.mdx-data
.mongo

# next-sitemap
/public/sitemap.xml
/public/robots.txt
4 changes: 4 additions & 0 deletions src/pages/docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ In `next.config.js`, you'll find a demonstration of how to **safely** inject inf

For example, we use it to inject current version into the `html` tag for better deployment tracking.

### Sitemap.xml and Robots.txt with next-sitemap

We use [next-sitemap](https://github.com/iamvishnusankar/next-sitemap#readme) to create both the `robots.txt` and `sitemap.xml` in the `postbuild` script. Change `https://vulcan.next` to your root url in `/vulcan-next-sitemap.js`. Here's more [configuration options](https://github.com/iamvishnusankar/next-sitemap#configuration-options).

### Performance debugging

[See official doc](https://nextjs.org/docs/advanced-features/measuring-performance).
Expand Down
1 change: 1 addition & 0 deletions vulcan-next-sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
{
userAgent: '*',
disallow: ['/vns/*', '/login', '/profile', '/signup', '/admin', '/auth'],
//allow: ['/','/docs/*'],
},
]
}
Expand Down

0 comments on commit ab34731

Please sign in to comment.