diff --git a/docs/gatsby-config.js b/docs/gatsby-config.js index bb6a59deea18..d67e8642ea0b 100644 --- a/docs/gatsby-config.js +++ b/docs/gatsby-config.js @@ -118,11 +118,11 @@ module.exports = { options: { env: { development: { - host: domain, + host: siteUrl, policy: [{ userAgent: "*", disallow: ["/"] }], }, production: { - host: domain, + host: siteUrl, policy: [{ userAgent: "*", disallow: ["/page-data/"] }], }, }, diff --git a/docs/package-lock.json b/docs/package-lock.json index 4be77dc2e9eb..0a77c6f468ea 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -26,7 +26,7 @@ "gatsby-plugin-offline": "^3.10.2", "gatsby-plugin-react-helmet": "^3.10.0", "gatsby-plugin-react-svg": "^3.0.1", - "gatsby-plugin-robots-txt": "^1.5.1", + "gatsby-plugin-robots-txt": "^1.6.2", "gatsby-plugin-sharp": "^2.14.4", "gatsby-plugin-sitemap": "^2.12.0", "gatsby-remark-autolink-headers": "^2.11.0", @@ -11190,12 +11190,15 @@ } }, "node_modules/gatsby-plugin-robots-txt": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.5.1.tgz", - "integrity": "sha512-hkCmoIgoCmW49GFeql8RLNIh9RsG7RosHm+wNA//oFdJSzaYX1VVXk3OV0O1+35xspovP14Kbo+U7x39nu2emA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.6.2.tgz", + "integrity": "sha512-TqLCnxldq7goBMrvtzTDWQAcjPUr/CpOUJe7K0NyLfDmP/xb+Ius03SvAdJRm33fyJr+YNjknSspPK7q9OvQYA==", "dependencies": { - "@babel/runtime": "^7.10.0", + "@babel/runtime": "^7.11.2", "generate-robotstxt": "^8.0.3" + }, + "peerDependencies": { + "gatsby": "^3.0.0 || ^2.0.0" } }, "node_modules/gatsby-plugin-sharp": { @@ -37468,11 +37471,11 @@ } }, "gatsby-plugin-robots-txt": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.5.1.tgz", - "integrity": "sha512-hkCmoIgoCmW49GFeql8RLNIh9RsG7RosHm+wNA//oFdJSzaYX1VVXk3OV0O1+35xspovP14Kbo+U7x39nu2emA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/gatsby-plugin-robots-txt/-/gatsby-plugin-robots-txt-1.6.2.tgz", + "integrity": "sha512-TqLCnxldq7goBMrvtzTDWQAcjPUr/CpOUJe7K0NyLfDmP/xb+Ius03SvAdJRm33fyJr+YNjknSspPK7q9OvQYA==", "requires": { - "@babel/runtime": "^7.10.0", + "@babel/runtime": "^7.11.2", "generate-robotstxt": "^8.0.3" } }, diff --git a/docs/package.json b/docs/package.json index 26c8ee63eb21..3d191a0e7c09 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,7 @@ "gatsby-plugin-offline": "^3.10.2", "gatsby-plugin-react-helmet": "^3.10.0", "gatsby-plugin-react-svg": "^3.0.1", - "gatsby-plugin-robots-txt": "^1.5.1", + "gatsby-plugin-robots-txt": "^1.6.2", "gatsby-plugin-sharp": "^2.14.4", "gatsby-plugin-sitemap": "^2.12.0", "gatsby-remark-autolink-headers": "^2.11.0",