Skip to content

Commit

Permalink
[sitemap]: remove diallow all from sitemap (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoni authored Oct 23, 2024
1 parent 5909f6e commit 0c29f22
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions deployment/frontend/next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,15 @@ module.exports = {
additionalSitemaps: [
`${process.env.NEXT_PUBLIC_NEXTAUTH_URL}/server-sitemap.xml`,
],
policies:
process.env.NEXT_PUBLIC_DEPLOYMENT_TYPE === 'production'
? [
{
userAgent: '*',
disallow: ['/dashboard/*'],
},
{
userAgent: '*',
allow: '/',
},
]
: [
{
userAgent: '*',
disallow: ['/*'],
},
],
policies: [
{
userAgent: '*',
disallow: ['/dashboard/*'],
},
{
userAgent: '*',
allow: '/',
},
]
},
}

0 comments on commit 0c29f22

Please sign in to comment.