-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
94 lines (91 loc) · 2.26 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
let environment = "development";
if (process.env.GATSBY_CLOUD && process.env.BRANCH === "main") {
environment = "production";
} else if (process.env.GATSBY_CLOUD) {
environment = "staging";
}
module.exports = {
siteMetadata: {
title: `Prune your follows`,
tagline: `Let's prune your follows!`,
description: `Find Twitter accounts to unfollow and make room for new follows.`,
url:
environment === "development"
? "http://localhost:8000"
: "https://pruneyourfollows.com",
},
trailingSlash: "always",
plugins: [
"gatsby-plugin-postcss",
"gatsby-plugin-image",
"gatsby-plugin-mdx",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: `gatsby-source-filesystem`,
options: {
// The unique name for each instance
name: `assets`,
// Path to the directory
path: `${__dirname}/assets/`,
},
},
{
resolve: `@raae/gatsby-plugin-fathom`,
options: {
site: "LFDKNTLD",
includedDomains: `pruneyourfollows.com`,
},
},
{
resolve: `gatsby-plugin-react-svg`,
options: {
rule: {
include: /.svg$/,
},
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`, // Needed for dynamic images
{
resolve: `gatsby-plugin-remote-images`,
options: {
nodeType: "UserAvatar",
imagePath: "avatarUrl",
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Prune Your Follows`,
short_name: `Prune`,
start_url: `/app`,
background_color: `#f0fdf4`,
theme_color: `#65a30d`,
display: `standalone`,
icon: `src/domains/common/icons8-cut.svg`,
},
},
{
resolve: "@sentry/gatsby",
options: {
dsn: process.env.SENTRY_DSN,
tracesSampleRate: process.env.SENTRY_SAMPLE_RATE || 0.7,
environment: environment,
release: process.env.COMMIT_REF,
},
},
{
resolve: `gatsby-plugin-gatsby-cloud`,
options: {
headers: {
"/*": ["Referrer-Policy: strict-origin-when-cross-origin"],
},
},
},
],
};