1/** @type {import('next-sitemap').IConfig} */
2
3module.exports = {
4 siteUrl: 'https://examples.flock.com',
5 generateRobotsTxt: true,
6};
next-sitemap.config.js
を作成(オプションはドキュメント参照)package.json
の scripts
に "postbuild": "next-sitemap"
を追加。.gitignore
に以下を追加/public/sitemap* /public/robots.txt