-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathgatsby-config.js
117 lines (115 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
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();
module.exports = {
siteMetadata: {
title: "AppScope",
titleTemplate: "%s · Instrument, Collect, Observe",
description:
"AppScope is an open source instrumentation utility for any application, regardless of its runtime, with no code modification required. Collect only the data you need for full observability of your applications, systems and infrastructure.",
url: "https://appscope.dev",
siteUrl: "https://appscope.dev/",
image: "/images/isoarchitecture.png",
twitterUsername: "@cribl",
},
plugins: [
"gatsby-plugin-sass",
"gatsby-plugin-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
"gatsby-transformer-yaml",
"gatsby-plugin-fontawesome-css",
"gatsby-plugin-mdx",
"gatsby-transformer-sharp",
"gatsby-plugin-styled-components",
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GTM-NNCJGH7",
includeInDevelopment: false,
defaultDataLayer: { platform: "gatsby" },
routeChangeEventName: "gatsby-route-change",
},
},
{
resolve: "gatsby-plugin-algolia",
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.GATSBY_ALGOLIA_WRITE_KEY,
queries: require("./src/utils/algolia-queries"),
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/images/apple-touch-icon.png",
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "code",
path: "./src/pages/docs",
},
},
{
resolve: "gatsby-transformer-remark",
options: {
// Footnotes mode (default: true)
// footnotes: true,
// GitHub Flavored Markdown mode (default: true)
gfm: true,
// Disable pedantic mode, which supercedes gfm and is true by default
pedantic: false,
// Plugins configs
plugins: [
{
resolve: `gatsby-remark-autolink-headers`,
options: {
enableCustomId: true,
}
},
// `gatsby-remark-prismjs`,
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 800,
},
},
{
resolve: `gatsby-remark-gifs`,
},
],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "docs",
path: "./src/pages/docs",
},
__key: "markdown",
},
{
resolve: "gatsby-source-filesystem",
options: {
path: "./src/data/",
},
},
"gatsby-plugin-meta-redirect", // Should be last, per docs
],
};