Add complete project files
This commit is contained in:
16
next-sitemap.config.js
Executable file
16
next-sitemap.config.js
Executable file
@@ -0,0 +1,16 @@
|
||||
/** @type {import('next-sitemap').IConfig} */
|
||||
module.exports = {
|
||||
siteUrl: process.env.SITE_URL || 'https://hamptonbrown.com',
|
||||
generateRobotsTxt: true,
|
||||
generateIndexSitemap: false,
|
||||
exclude: ['/api/*'],
|
||||
robotsTxtOptions: {
|
||||
policies: [
|
||||
{
|
||||
userAgent: '*',
|
||||
allow: '/',
|
||||
disallow: ['/api/', '/admin/'],
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user