From 85535a7f0770e3223d126765af02d07e80fab442 Mon Sep 17 00:00:00 2001 From: ajfisher Date: Sat, 17 Feb 2024 09:52:25 +1100 Subject: [PATCH] fix: make robots.txt urls explicit fixes: #187 --- site/gatsby-config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/site/gatsby-config.js b/site/gatsby-config.js index 5001d39..69bca5e 100644 --- a/site/gatsby-config.js +++ b/site/gatsby-config.js @@ -109,7 +109,14 @@ module.exports = { icon: `src/img/ajfisher_large.jpg`, // This path is relative to the root of the site. }, }, - `gatsby-plugin-robots-txt`, + { + resolve: `gatsby-plugin-robots-txt`, + options: { + host: `https://ajfisher.me`, + sitemap: 'https://ajfisher.me/sitemap-0.xml', + policy: [{userAgent: '*', allow: '/'}], + } + }, { resolve: `gatsby-plugin-canonical-urls`, options: {