forked from san-diego-tech-hub/sdth-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
149 lines (144 loc) · 3.48 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
if (process.env.LOCAL_BUILD || process.env.NODE_ENV === "development") {
require("dotenv").config({ path: ".env.dev" })
}
const plugins = [
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/images/misc`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "carouselImages",
path: `${__dirname}/src/images/carousel`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "team",
path: `${__dirname}/src/images/team`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "partnerLogos",
path: `${__dirname}/src/images/partnerLogos`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "sponsorLogos",
path: `${__dirname}/src/images/sponsorLogos`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "initiativeLogos",
path: `${__dirname}/src/images/initiatives`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `${__dirname}/src/data/content`,
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
"gatsby-transformer-remark",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "San Diego Tech Hub",
short_name: "SD Tech Hub",
start_url: "/",
background_color: "#663399",
theme_color: "#663399",
display: "minimal-ui",
icon: "./src/images/misc/circle-logo.png",
},
},
{
resolve: "gatsby-plugin-typography",
options: {
pathToConfigModule: "src/utils/typography.js",
},
},
{
resolve: "gatsby-plugin-google-fonts",
options: {
fonts: ["roboto"],
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint: process.env.MAILCHIMP,
},
},
"gatsby-plugin-remove-trailing-slashes",
"gatsby-plugin-remove-serviceworker",
"gatsby-plugin-styled-components",
{
resolve: "gatsby-source-meetup",
options: {
key: process.env.MEETUP_API_KEY,
groupUrlName: "sandiegojs",
status: "upcoming,past",
desc: "true",
page: 200,
},
},
{
resolve: "gatsby-source-eventbrite",
options: {
organizationId: process.env.EVENTBRITE_ORG_ID,
accessToken: process.env.EVENTBRITE_OAUTH_TOKEN,
entities: ["events", "venues"],
},
},
"gatsby-plugin-netlify-cms"
]
if (process.env.NODE_ENV === "production") {
plugins.push({
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: process.env.GA,
},
})
}
if (process.env.NODE_ENV === "development") {
plugins.push({
resolve: "gatsby-plugin-eslint",
options: {
test: /\.js$|\.jsx$/,
exclude: /(node_modules|.cache|public)/,
stages: ["develop"],
options: {
emitWarning: true,
failOnError: false,
},
},
})
}
const config = {
siteMetadata: {
title: "San Diego Tech Hub",
description:
"San Diego Tech Hub represents a movement aimed at changing the perception of the San Diego tech ecosystem. Our focus is to be a conduit for change connecting businesses, organizations, and individuals, leveraging their resources and talents to build a stronger San Diego tech community through collaboration.",
author: "Claude Jones",
twitterHandle: "@SanDiegoTechHub",
image: "https://www.SanDiegoTechHub.com/circle-logo.png"
},
plugins,
}
module.exports = config