Skip to content

Commit

Permalink
fix(seo): Add convert-accessions page to robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Mar 19, 2023
1 parent e07331b commit 077894f
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 @@ -201,7 +201,7 @@ export default {
const robotsPath = path.join(outDir, 'robots.txt')

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

0 comments on commit 077894f

Please sign in to comment.