-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
122 lines (121 loc) · 3.21 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
115
116
117
118
119
120
121
122
const path = require('path');
require("dotenv").config({
path: `.env`,
})
module.exports = {
siteMetadata: {
title: 'Our Soul Agenda',
description: `Sharing life lessons to help you step into your power.`,
description: 'The professional publishing platform',
siteUrl: 'https://oursoulagenda.com', // full path to blog - no ending slash
author: `@itsobinna`,
},
mapping: {
'MarkdownRemark.frontmatter.author': 'AuthorYaml',
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-156587076-1',
// 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-sitemap',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: path.join(__dirname, 'src', 'content'),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: path.join(__dirname, 'src', 'images'),
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1rem',
},
},
'gatsby-remark-prismjs',
'gatsby-remark-copy-linked-files',
'gatsby-remark-smartypants',
'gatsby-remark-abbr',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1170,
quality: 90,
},
},
],
},
},
'gatsby-transformer-json',
{
resolve: 'gatsby-plugin-canonical-urls',
options: {
siteUrl: 'https://outsoucom',
},
},
'gatsby-plugin-emotion',
'gatsby-plugin-typescript',
'gatsby-transformer-sharp',
'gatsby-plugin-react-helmet',
'gatsby-transformer-yaml',
'gatsby-plugin-feed',
{
resolve: 'gatsby-plugin-postcss',
options: {
postCssPlugins: [require('postcss-color-function'), require('cssnano')()],
},
},
// Youtube Gatsby Plugin
{
resolve: `gatsby-source-youtube-v2`,
options: {
channelId: ["UC14DDaQZouxfsTxHhXxF0sg"], // https://www.youtube.com/channel/UC14DDaQZouxfsTxHhXxF0sg
apiKey: process.env.YOUTUBE_API_KEY, // HIDE this
maxVideos: 10, // Defaults to 50
},
},
// WEB FONT LOADER
{
resolve: 'gatsby-plugin-web-font-loader',
options: {
google: {
families: ['Lalezar']
}
}
},
// TAWK TO
{
resolve: `gatsby-plugin-tawk`,
options: {
tawkId: "5e24ba228e78b86ed8aa11f4",
// get this from the tawk script widget
},
},
],
};