Skip to content

Commit

Permalink
fix(robots.txt): Remove tree page from disallow list.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 15, 2023
1 parent 2f6295f commit fc84711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default {
const robotsPath = path.join(outDir, 'robots.txt')

if (process.env.ENV_NAME === 'prod') {
fs.writeFileSync(robotsPath, 'User-agent: *\nDisallow: /browsers*?\nDisallow: /tree*?\nDisallow: /taxon-history*?\nDisallow: /fastani*?\nDisallow: /advanced*?\nSitemap: https://gtdb.ecogenomic.org/sitemap.xml\n')
fs.writeFileSync(robotsPath, 'User-agent: *\nDisallow: /browsers*?\nDisallow: /taxon-history*?\nDisallow: /fastani*?\nDisallow: /advanced*?\nDisallow: /searches*?\nSitemap: https://gtdb.ecogenomic.org/sitemap.xml\n')
} else {
fs.writeFileSync(robotsPath, 'User-agent: *\nDisallow: /\n')
}
Expand Down

0 comments on commit fc84711

Please sign in to comment.