diff --git a/next-sitemap.config.js b/next-sitemap.config.js new file mode 100644 index 000000000..0518f0a45 --- /dev/null +++ b/next-sitemap.config.js @@ -0,0 +1,10 @@ +const BLOG = require('./blog.config') + + +module.exports = { + siteUrl: BLOG.link, + generateRobotsTxt: true, + sitemapSize: 7000, + // ...other options + // https://github.com/iamvishnusankar/next-sitemap#configuration-options +} diff --git a/next-sitemap.js b/next-sitemap.js deleted file mode 100644 index e26046e4e..000000000 --- a/next-sitemap.js +++ /dev/null @@ -1,6 +0,0 @@ -const BLOG = require('./blog.config') - -module.exports = { - siteUrl: BLOG.link, - generateRobotsTxt: true -} diff --git a/package.json b/package.json index 8f2248a94..f1b4d2adc 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "dev": "next dev", "build": "next build", "start": "next start", - "postbuild": "next-sitemap" + "postbuild": "next-sitemap --config next-sitemap.config.js" }, "dependencies": { "feed": "^4.2.2",