-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
109 lines (108 loc) · 2.98 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
require("dotenv").config()
module.exports = {
siteMetadata: {
siteTitle: `DERRY`,
author: `@sowasred1`,
},
plugins: [
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`limelight`,
`Dawning of a New Day`,
`Poppins`,
`Raleway`,
`Zeyada`,
`Arapey`,
`Noto Serif`,
`Yantramanav`,
],
display: "swap",
},
},
`gatsby-plugin-sass`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-graphql-loader`,
{
resolve: `gatsby-transformer-remark`,
options: {
// CommonMark mode (default: true)
commonmark: true,
// Footnotes mode (default: true)
footnotes: true,
// Pedantic mode (default: true)
pedantic: true,
// GitHub Flavored Markdown mode (default: true)
gfm: true,
// Plugins configs
plugins: [],
},
},
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `blogposts`,
// path: `${__dirname}/src/blogposts`,
// },
// },
{
resolve: `gatsby-source-strapi`,
options: {
apiURL: `http://localhost:1337`,
queryLimit: 1000, // Default to 100
contentTypes: [
`user`,
"product",
"category",
"footer-company-pages",
"footer-help-pages",
"menu-other-pages",
"footer-company-pages",
"brand",
"blog",
],
// If using single types place them in this array.
singleTypes: [`home-page`],
// // Possibility to login with a strapi user, when content types are not publically available (optional).
loginData: {
identifier: "manager",
password: process.env.STRAPI_PSSWD,
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Leather Jacket Store`,
short_name: `Leather Jacket`,
start_url: `/`,
background_color: `black`,
theme_color: `black`,
display: `minimal-ui`,
icon: `src/images/jacket.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-react-redux`,
options: {
// [required] - path to your createStore module
pathToCreateStoreModule: "./src/state/createStore",
// [optional] - options passed to `serialize-javascript`
// info: https://github.com/yahoo/serialize-javascript#options
// will be merged with these defaults:
serialize: {
space: 0,
isJSON: true,
unsafe: false,
},
// [optional] - if true will clean up after itself on the client, default:
cleanupOnClient: true,
// [optional] - name of key on `window` where serialized state will be stored, default:
windowKey: "__PRELOADED_STATE__",
},
},
],
}