-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
53 lines (50 loc) · 1.25 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
plugins: [
{
resolve: `gatsby-source-prismic`,
options: {
repositoryName: `nihongoscotland`,
accessToken: `${process.env.API_KEY}`,
linkResolver: ({ node, key, value }) => post => `/${post.uid}`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/static/assets/`
},
},
`gatsby-plugin-styled-components`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-plugin-zopfli',
options: {
extensions: ['css', 'html', 'js', 'svg', 'woff', 'woff2']
}
},
`gatsby-plugin-react-helmet`,
{
resolve: 'gatsby-plugin-sass',
options: {
// data: `@import "${__dirname}/styles/main";`,
includePaths: [`${__dirname}/styles/main`]
}
},
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint: 'https://nihongoscotland.us16.list-manage.com/subscribe/post?u=17e930ef2f11232d3ac0dca1e&id=200df291c9',
},
},
],
}