Skip to content

Commit 54ac1a0

Browse files
authored
Added gatsby-plugin-sitemap and gatsby-plugin-robots-txt (#971)
1 parent 38a3dfa commit 54ac1a0

4 files changed

Lines changed: 6518 additions & 9916 deletions

File tree

gatsby-config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
title: `Pola Web`,
99
description: `Strona aplikacji Pola`,
1010
author: `Klub Jagielloński`,
11-
siteUrl: (process.env.PUBLIC_URL && new URL(process.env.PUBLIC_URL).origin) || 'http://localhost:8000',
11+
siteUrl: 'https://www.pola-app.pl',
1212
},
1313
flags: {
1414
FAST_DEV: false,
@@ -21,6 +21,22 @@ module.exports = {
2121
'gatsby-plugin-use-query-params',
2222
`gatsby-plugin-styled-components`,
2323
`gatsby-plugin-react-helmet`,
24+
{
25+
resolve: `gatsby-plugin-sitemap`,
26+
options: {
27+
excludes: [`/dev-404-page`, `/404`, `/404.html`],
28+
29+
},
30+
},
31+
32+
{
33+
resolve: "gatsby-plugin-robots-txt",
34+
options: {
35+
host: "https://www.pola-app.pl",
36+
sitemap: "https://www.pola-app.pl/sitemap-index.xml",
37+
policy: [{ userAgent: "*", allow: "/", disallow: ['/dev-404-page'], }],
38+
},
39+
},
2440

2541
`gatsby-plugin-image`,
2642
`gatsby-plugin-sharp`,

0 commit comments

Comments
 (0)