-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
104 lines (102 loc) · 2.98 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/** @format */
require("dotenv").config({
path: ".env",
});
module.exports = {
siteMetadata: {
title: `auto-welt`,
siteUrl: `https://www.auto-welt.info`,
},
plugins: [
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-M3ZR7D9",
includeInDevelopment: false,
defaultDataLayer: { platform: "gatsby" },
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: "699546608231911",
},
},
{
resolve: "gatsby-source-wordpress",
options: {
url: `${process.env.GATSBY_WORDPRESS_URL}/graphql`,
schema: {
timeout: 30000000,
perPage: 20, // currently set to 100
requestConcurrency: 5, // currently set to 15
},
type: {
__all: {
limit: 1000,
},
MediaItem: {
localFile: {
maxFileSizeBytes: 52428800, // 50Mb
requestConcurrency: 5,
},
},
},
},
},
"gatsby-plugin-sitemap",
"gatsby-plugin-image",
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {
formats: [`auto`, `webp`],
placeholder: `blurred`,
quality: 90,
breakpoints: [768, 1440, 1920],
backgroundColor: `transparent`,
},
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-styled-components",
"gatsby-plugin-react-helmet",
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Auto-welt`,
short_name: `Auto-welt`,
description: `Wystawy modeli samochodów`,
lang: `pl`,
display: `standalone`,
icon: `src/images/icon.png`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#fff`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /images/,
},
},
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://auto-welt.info',
sitemap: 'https://auto-welt.info/sitemap-0.xml',
policy: [{ userAgent: '*', allow: '/' }]
}
},
],
};