Skip to content

Commit

Permalink
Make output optional in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvishnusankar committed May 18, 2023
1 parent 7aa08c1 commit 85bcb66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Above is the minimal configuration to split a large sitemap. When the number of
| property | description | type |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| siteUrl | Base url of your website | string |
| output | Next.js output modes. [Check documentation](https://nextjs.org/docs/pages/api-reference/next-config-js/output). | `standalone`, `export` |
| output (optional) | Next.js output modes. [Check documentation](https://nextjs.org/docs/pages/api-reference/next-config-js/output). | `standalone`, `export` |
| changefreq (optional) | Change frequency. Default `daily` | string |
| priority (optional) | Priority. Default `0.7` | number |
| sitemapBaseFileName (optional) | The name of the generated sitemap file before the file extension. Default `"sitemap"` | string |
Expand Down
4 changes: 1 addition & 3 deletions examples/static-export/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const nextConfig = require('./next.config')

/** @type {import('next-sitemap').IConfig} */
const config = {
...nextConfig,
siteUrl: process.env.SITE_URL || 'https://example.com',
generateRobotsTxt: true,
output: 'static', // Set static output here
}

module.exports = config

0 comments on commit 85bcb66

Please sign in to comment.