forked from pittcsc/pittcsc-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
79 lines (78 loc) · 2.06 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: "Computer Science Club at Pitt",
description:
"Website for the largest computer science student organization at the University of Pittsburgh.",
image: "/Pitt_CSC_Social_Card.png",
lang: "en",
url: "https://csclubatpitt.org",
twitterUsername: "@CSC_at_Pitt",
},
plugins: [
{
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: "UA-58446605-1",
},
},
{
resolve: `gatsby-plugin-sass`,
options: {
postCssPlugins: [
require("tailwindcss")(require("./tailwind.config.js")),
],
},
},
"gatsby-plugin-react-helmet",
`gatsby-plugin-image`,
"gatsby-transformer-sharp",
`gatsby-plugin-sharp`,
"gatsby-transformer-json",
`gatsby-plugin-portal`,
`gatsby-plugin-netlify`,
"gatsby-plugin-svgr",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: "./content",
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Computer Science Club at Pitt",
short_name: "CSC at Pitt",
description:
"Website for the largest computer science student organization at the University of Pittsburgh.",
lang: `en`,
start_url: "/",
background_color: "#FFFFFF",
display: `standalone`,
icon: "src/images/icon.svg",
},
},
{
resolve: "gatsby-source-google-spreadsheet",
options: {
spreadsheetId: "1hxiXzFyLKy1vreEobJml3nthc__mb7ooaztyvGR-luI",
credentials: {
client_email: process.env.GOOGLE_SHEETS_API_CLIENT_EMAIL,
private_key: process.env.GOOGLE_SHEETS_API_KEY.replace(new RegExp("_", 'g'), "\n"),
},
filterNode: (node) => node.show === "yes",
}
},
],
};