-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
85 lines (82 loc) · 1.91 KB
/
gatsby-config.js
File metadata and controls
85 lines (82 loc) · 1.91 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
require('dotenv').config()
const postQuery =`
{
posts: allContentfulBlogPost {
edges {
node {
objectID: id
slug
title
tags
body {
body: childMarkdownRemark {
excerpt
headings {
value
depth
}
}
}
}
}
}
}
`
const queries = [
{
query: postQuery,
transformer: ({ data }) =>
data.posts.edges.map(({ node }) => ({ node }))
},
]
module.exports = {
siteMetadata: {
title: 'How To Learn React',
description: 'These tutorials will give you a deeper understanding of React.js. Learn with examples from the Javascript UI library, covering the basics and the advanced.'
},
plugins: [
"gatsby-transformer-remark",
"gatsby-plugin-react-helmet",
"gatsby-plugin-styled-components",
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-source-contentful",
options: {
spaceId: "xgoskzm5h9or",
accessToken: "d1b2d3210de2d87785ced9abd7ce66a64a4339d3c28fcee533956c74bb46ab88",
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: `${__dirname}/src/pages`
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/images`,
}
},
{
resolve: "gatsby-plugin-algolia",
options: {
appId: "X04G7JBMWL",
apiKey: "68c9d4898f0eec12443ec67ddd0a1cda",
indexName: "POSTS",
queries,
chunkSize: 10000
}
},
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/favicon.png",
}
}
]
}