Skip to content

Commit 282052e

Browse files
committed
refactor: update next-sitemap config
1 parent 6dfa39d commit 282052e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/next-sitemap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ const { config } = require('@reactpress/config');
33
module.exports = {
44
siteUrl: config.CLIENT_SITE_URL,
55
generateRobotsTxt: true,
6+
robotsTxtOptions: {
7+
policies: [{ userAgent: '*', allow: '/', disallow: '/admin/' }],
8+
},
9+
exclude: ['/admin', '/admin/**'],
610
};

0 commit comments

Comments
 (0)