-
Notifications
You must be signed in to change notification settings - Fork 9
/
gatsby-config.js
117 lines (114 loc) · 2.95 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
require('dotenv').config({
path: `.env`,
});
module.exports = {
assetPrefix: process.env.ASSET_HOST,
siteMetadata: {
title: 'Testsigma Tutorials',
description: '',
author: 'Testsigma',
siteUrl: 'https://testsigma.com/tutorials/'
},
plugins: [
"gatsby-plugin-postcss",
"gatsby-plugin-sass",
"gatsby-plugin-image",
"gatsby-transformer-remark",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-s3`,
options: {
bucketName: process.env.BUCKET_NAME,
protocol: "https",
hostname: process.env.HOST_NAME,
generateRedirectObjectsForPermanentRedirects: true
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'src',
path: `${__dirname}/src/`,
},
},
{
resolve: `gatsby-plugin-ts-freshchat`,
options: {
token: process.env.FRESHCHAT_TOKEN,
host: "https://wchat.freshchat.com",
appEmbedUrl: "https://app.testsigma.com/ui/dashboard",
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_TRACKING_ID,
head: false,
anonymize: true,
respectDNT: true,
enableWebVitalsTracking: true,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GTAG_TRACKING_ID_FOR_GA4, // Google Analytics 4
process.env.GTAG_TRACKING_ID_FOR_GTAG, // Google Tag Manager
],
pluginConfig: {
head: false,
respectDNT: true,
},
}
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
elements: [`h2`],
},
},
'gatsby-remark-check-links',
'gatsby-remark-responsive-iframe',
{
resolve: 'gatsby-remark-prismjs',
options: {
classPrefix: 'language-',
inlineCodeMarker: null,
aliases: {},
showLineNumbers: false,
noInlineHighlight: false,
},
},
{
resolve: "gatsby-remark-custom-blocks",
options: {
blocks: {
danger: {
classes: "alert alert-danger",
title: "optional",
},
info: {
classes: "alert alert-info",
title: "optional",
},
},
},
},
{
resolve: 'gatsby-plugin-env-variables',
options: {
allowList: ['TYPESENSE_HOST', 'TYPESENSE_PORT', 'TYPESENSE_PROTOCOL', 'TYPESENSE_API_KEY', "TYPESENSE_SEARCH_API_KEY", "TYPESENSE_COLLECTION"],
},
}
],
},
}
],
};