-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathgatsby-config.js
More file actions
102 lines (99 loc) · 3.11 KB
/
gatsby-config.js
File metadata and controls
102 lines (99 loc) · 3.11 KB
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
require('dotenv').config();
module.exports = {
plugins: [
'gatsby-plugin-ts-config', // allows ts configs mainly for gatsby-node.ts
'gatsby-plugin-graphql-codegen', // for typescript GraphQL Typing
'gatsby-plugin-sass',
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/profiles/images`,
},
},
'gatsby-plugin-react-leaflet',
// Image Processing using Sharp IMG Utils
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `profiles`,
path: `${__dirname}/src/profiles`,
},
},
{
resolve: `gatsby-plugin-modal-routing`,
options: {
// A selector to set react-modal's app root to, default is `#___gatsby`
// See http://reactcommunity.org/react-modal/accessibility/#app-element
appElement: '#___gatsby',
// Object of props that will be passed to the react-modal container
// See http://reactcommunity.org/react-modal/#usage
modalProps: { className: 'test-modal' },
},
},
`gatsby-transformer-remark`,
`gatsby-plugin-mdx`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `MLH Fellows`,
short_name: `MLH`,
start_url: `/`,
background_color: `#acd3de`,
theme_color: `#acd3de`,
display: `standalone`,
icon: `src/assets/images/favicon.ico`,
},
},
{
resolve: `gatsby-source-github-api`,
options: {
// token: required by the GitHub API
token: process.env.GITHUB_TOKEN,
// GraphQLquery: defaults to a search query
graphQLQuery: `
{
organization(login: "MLH-Fellowship") {
teams(first: 50) {
edges {
node {
description
name
avatarUrl
id
members {
nodes {
avatarUrl
bio
email
followers {
totalCount
}
following {
totalCount
}
location
login
name
twitterUsername
url
websiteUrl
company
}
}
}
}
}
}
}
`,
// variables: defaults to variables needed for a search query
variables: {},
},
},
`gatsby-plugin-mdx`,
],
};