-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
114 lines (112 loc) · 3.47 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
105
106
107
108
109
110
111
112
113
114
/**
* 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 shop starter',
description: 'Flotiq Gatsby shop starter',
siteUrl: 'https://flotiqgatsbyshop2.gtsb.io',
},
plugins: [
{
// How to configure? https://www.gatsbyjs.com/plugins/gatsby-plugin-google-gtag/
// Video: https://www.youtube.com/watch?v=Dwi99jtl3Fs
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingIds: [
process.env.GA_MEASUREMENT_ID || 'test', // GA Measurement
],
gtagConfig: {
optimize_id: 'OPT_CONTAINER_ID',
anonymize_ip: true,
cookie_expires: 0,
},
pluginConfig: {
head: true,
respectDNT: true,
exclude: ['/preview/**', '/do-not-track/me/too/'],
},
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-source-flotiq',
options: {
authToken: process.env.GATSBY_FLOTIQ_API_KEY,
downloadMediaFile: true,
forceReload: false,
includeTypes: [
'_media',
'product',
],
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'placeholder',
path: `${__dirname}/gatsby-config.js`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'assets',
path: `${__dirname}/src/assets`,
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-robots-txt',
options: {
host: 'https://flotiqgatsbyshop2.gtsb.io',
sitemap: 'https://flotiqgatsbyshop2.gtsb.io/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',
{
resolve: 'gatsby-plugin-snipcart-advanced',
options: {
publicApiKey: process.env.SNIPCART_API_KEY,
},
},
{
resolve: 'gatsby-plugin-gatsby-cloud',
options: {
headers: {
'/*': [
'x-frame-options: allow-from https://jamstackthemes.dev/',
],
},
},
},
],
};