-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
90 lines (88 loc) · 2.99 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
// eslint-disable-next-line import/no-extraneous-dependencies
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: 'Flotiq gatsby starter boilerplate',
description: 'Flotiq gatsby starter boilerplate',
siteUrl: 'https://example.com',
},
plugins: [
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GA_TRACKING_ID || 'test',
// Puts tracking script in the head instead of the body
head: true,
// IP anonymization for GDPR compliance
anonymize: true,
// Disable analytics for users with `Do Not Track` enabled
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ['/preview/**'],
// Specifies what percentage of users should be tracked
sampleRate: 100,
// Determines how often site speed tracking beacons will be sent
siteSpeedSampleRate: 10,
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-source-flotiq',
options: { // all options are described here: https://github.com/flotiq/gatsby-source-flotiq#parameters
authToken: process.env.GATSBY_FLOTIQ_API_KEY,
downloadMediaFile: true,
forceReload: false,
includeTypes: [
'_media',
'jak_pomoc',
'jak_pomoc_sekcje'
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'placeholder',
path: `${__dirname}/gatsby-config.js`,
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://your-domain.com',
sitemap: 'https://your-domain.com/sitemap.xml',
policy: [{ userAgent: '*', allow: '/' }],
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
icon: 'src/assets/favicons/favicon-16x16.png',
icons: [
{
src: 'src/assets/favicons/favicon-32x32.png',
sizes: '32x32',
type: 'image/png',
},
{
src: 'src/assets/favicons/favicon-16x16.png',
sizes: '16x16',
type: 'image/png',
},
],
},
},
'gatsby-plugin-postcss',
],
};