-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
142 lines (141 loc) · 4.58 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
module.exports = {
siteMetadata: {
title: `UX Society Apps`,
author: `UX Society`,
description: `UX Society's offical application platform for Executive Board, Associate Vice President and Officer positions. Apply now for a position at UX Society!`,
siteUrl: `https://apps.uxsociety.org/`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `User Experience Society Apps`,
short_name: `UXSoc Apps`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#0885c3`,
// display: `minimal-ui`,
// edit below
icon: `src/assets/images/logo.png`,
},
},
{
resolve: 'gatsby-plugin-decap-cms',
options: {
modulePath: `${__dirname}/src/cms/cms.js`,
publicPath: `admin`,
manualInit: true,
customizeWebpackConfig: (config, { plugins }) => {
config.plugins.push(
plugins.define({
__MANIFEST_PLUGIN_HAS_LOCALISATION__: JSON.stringify('false'),
})
)
},
},
},
`gatsby-plugin-styled-components`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-relative-images',
},
{
resolve: 'gatsby-remark-images',
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 2048,
},
},
{
resolve: 'gatsby-remark-copy-linked-files',
options: {
destinationDir: 'static',
},
},
],
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
{
// keep as first gatsby-source-filesystem plugin for gatsby image support
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/static/images/uploads`,
name: 'uploads',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/pages`,
name: 'pages',
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/positions`,
name: 'positions',
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
// edit below
trackingId: `UA-40088075-7`,
},
},
`gatsby-plugin-offline`,
'gatsby-plugin-netlify',
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
/*{
resolve: `gatsby-plugin-netlify-headers`,
options: {
headers: {
'/*': [
'X-Frame-Options: ALLOW_FROM https://www.youtube-nocookie.com',
'X-XSS-Protection: 1; mode=block',
'Referrer-Policy: no-referrer',
'X-Content-Type-Options: nosniff',
],
},
},
},*/
/*{
resolve: `gatsby-plugin-csp`,
options: {
disableOnDev: true,
reportOnly: false, // Changes header to Content-Security-Policy-Report-Only for csp testing purposes
mergeScriptHashes: true, // you can disable scripts sha256 hashes
mergeStyleHashes: true, // you can disable styles sha256 hashes
mergeDefaultDirectives: true,
directives: {
'default-src':
'self https://www.google-analytics.com https://www.facebook.com https://stats.g.doubleclick.net https://www.youtube.com',
'object-src': "'self' blob",
'style-src-elem':
"'self' 'unsafe-inline' blob: blob https://stats.g.doubleclick.net",
'media-src': "'self' https://stats.g.doubleclick.net",
'script-src':
"'self' 'unsafe-inline' https://connect.facebook.net https://www.google-analytics.com https://stats.g.doubleclick.net https://www.facebook.com",
'style-src': "'self' 'unsafe-inline' blob blob:",
'img-src':
"'self' https://www.google-analytics.com www.google-analytics.com data: https://www.google.com.ph https://www.google.com https://www.facebook.com https://stats.g.doubleclick.net https://www.youtube.com",
// you can add your directives or override defaults
'frame-src': "'self' https://www.youtube-nocookie.com",
},
},
},*/
],
}