forked from lightningrodlabs/acorn-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
69 lines (67 loc) · 2.28 KB
/
gatsby-config.ts
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
import type { GatsbyConfig } from "gatsby";
const config: GatsbyConfig = {
siteMetadata: {
title: `Acorn | Open Source P2P Project Management for Software Teams`,
description: `Agile project management made simple. Open-source, peer-to-peer, perfect for remote teams.`,
// image for social sharing
// make sure there is a copy of it in 'static' folder
image: `/acorn-social-sharing-preview.png`,
siteUrl: `https://acorn.software`,
// keywords: ["Holochain", "project management"],
},
// More easily incorporate content into your pages through automatic TypeScript type generation and better GraphQL IntelliSense.
// If you use VSCode you can also use the GraphQL plugin
// Learn more at: https://gatsby.dev/graphql-typegen
graphqlTypegen: true,
plugins: [
"gatsby-plugin-sass",
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
// react svg plugin
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /svgs/,
},
},
},
// Amplitude Analytics
{
resolve: `gatsby-plugin-amplitude-analytics`,
options: {
// Specify the API key for your Amplitude Project (required)
apiKey: "1bb947baf373378369d2122c6d3eef53",
// Puts tracking script in the head instead of the body (optional)
head: false,
// Prevents loading Amplitude and logging events if visitors have "Do Not Track" enabled (optional)
respectDNT: true,
// Avoids sending pageview hits from custom paths (optional)
exclude: ["/preview/**", "/do-not-track/me/too/"],
// Override the default event types (optional)
eventTypes: {
outboundLinkClick: 'OUTBOUND_LINK_CLICK',
pageView: 'PAGE_VIEW',
},
// Amplitude JS SDK configuration options (optional)
amplitudeConfig: {
saveEvents: true,
includeUtm: true,
includeReferrer: true
},
// Specify NODE_ENVs in which the plugin should be loaded (optional)
environments: ["production"],
},
},
],
};
export default config;