forked from Rebuild-Black-Business/RBB-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
212 lines (210 loc) · 6.14 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
const BASE_SITE_URL = 'https://www.rebuildblackbusiness.com';
require('dotenv').config({
path: `.env`,
});
module.exports = {
siteMetadata: {
title: `Rebuild Black Business`,
// eslint-disable-next-line max-len
description: `Restore wealth to Black communities through economic empowerment and resource allocation.`,
author: {
name: 'Rebuild Black Business',
},
organization: {
name: 'Rebuild Black Business',
url: BASE_SITE_URL,
logo:
'https://res.cloudinary.com/rebuild-black-business/image/upload/v1591562585/assets/RBBLogoFinal_ugdskx.png',
},
seo: {
title: `Rebuild Black Business`,
description: `Restore wealth to Black communities through economic empowerment and resource allocation.`,
image:
'https://res.cloudinary.com/rebuild-black-business/image/upload/v1591726474/assets/rbb-socialimage_g7rhcj.jpg',
},
social: {
twitter: 'rebuildingblack',
fbAppID: 'RebuildingBlack',
instagram: 'rebuildingblack',
github: 'https://github.com/Rebuild-Black-Business',
contact: '[email protected]',
bugs: '[email protected]',
image:
'https://res.cloudinary.com/rebuild-black-business/image/upload/v1591726474/assets/rbb-socialimage_g7rhcj.jpg',
},
logo: {
src: '#',
alt: 'Rebuild Black Business',
},
image: `https://res.cloudinary.com/rebuild-black-business/image/upload/v1591726474/assets/rbb-socialimage_g7rhcj.jpg`, // used for RSS feed image and SEO fallback
logoText: 'Rebuild Black Business',
siteUrl: BASE_SITE_URL,
menuLinks: [
{
name: 'About',
slug: '/about',
},
{
name: 'Businesses',
slug: '/businesses',
},
{
name: 'Fundraisers',
slug: '/fundraisers',
},
{
name: 'Allies',
slug: '/allies',
},
],
photoCreditLinks: [
{
photographer: 'Clay Banks',
url: 'https://www.instagram.com/clay.banks',
pagePathname: '/',
},
{
photographer: 'John Cameron',
url: 'https://unsplash.com/@john_cameron',
pagePathname: '/',
},
{
photographer: 'Kelly Lacy',
url: 'https://instagram.com/kellymlacy',
pagePathname: '/',
},
{
photographer: 'Mike Von',
url: 'https://thevoncomplex.com',
pagePathname: '/',
},
{
photographer: 'Kelly Lacy',
url: 'https://instagram.com/kellymlacy',
pagePathname: '/about',
},
{
photographer: 'WOCinTechChat.com',
url: 'http://www.wocintechchat.com/',
pagePathname: '/about',
},
{
photographer: 'Allison Christine',
url: 'https://www.instagram.com/happpyal/',
pagePathname: '/about',
},
{
photographer: 'Chris Slupski',
url: 'https://unsplash.com/@kslupski',
pagePathname: '/about',
},
{
photographer: 'Jason Leung',
url: 'https://www.instagram.com/xninjason/',
pagePathname: '/businesses',
},
{
photographer: 'Julian Myles',
url: 'https://julianmyles.nyc',
pagePathname: '/businesses',
},
{
photographer: 'Joe Yates',
url: 'https://www.instagram.com/josephyates_/',
pagePathname: '/allies',
},
{
photographer: 'Logan Weaver ',
url: 'https://lgnwvrphto.com',
pagePathname: '/allies',
},
],
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Rebuild Black Business`,
icon: `src/images/favicon.png`,
short_name: `Rebuild Black Business`,
start_url: `/`,
background_color: `#f46036`, // theme orange
theme_color: `#f46036`, // theme orange
display: `standalone`,
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.GATSBY_AIRTABLE_API_KEY, // pulls in from your .env file
tables: [
{
baseId: process.env.GATSBY_AIRTABLE_BASE_ID, // note that this is not a secret, just an id
tableName: `Businesses`,
tableView: `Approved`, // optional
queryName: `Businesses`,
separateNodeType: true,
separateMapType: true,
defaultValues: {
Business_Description: '',
Donation_Link: '',
},
},
{
baseId: process.env.GATSBY_AIRTABLE_BASE_ID, // note that this is not a secret, just an id
tableName: `Allies`,
tableView: `Approved`, // optional
queryName: `Allies`,
separateNodeType: true,
separateMapType: true,
defaultValues: {
First_Name: '',
Last_Name: '',
City: '',
State: '',
},
},
],
},
},
{
resolve: 'gatsby-plugin-chakra-ui',
options: {
isUsingColorMode: false,
isResettingCSS: true,
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// The property ID; the tracking code won't be generated without it
trackingId: process.env.GOOGLE_ANALYTICS_PROPERTY_ID,
// Defines where to place the tracking script - `true` in the head and `false` in the body
head: false,
// Defers execution of google analytics script after page load
defer: false,
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: process.env.FACEBOOK_PIXEL_ID,
environment: process.env.NODE_ENV,
enabled: (() =>
['production', 'staging'].indexOf(process.env.NODE_ENV) !== -1)(),
},
},
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-sentry',
options: {
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
enabled: (() =>
['production', 'staging'].indexOf(process.env.NODE_ENV) !== -1)(),
},
},
'gatsby-plugin-sitemap',
'gatsby-plugin-netlify',
],
};