-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
132 lines (119 loc) · 5.79 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
plugins: [
// {
// resolve: "gatsby-source-prismic",
// options: {
// // The name of your prismic.io repository. This is required.
// // Example: 'gatsby-source-prismic-test-site' if your prismic.io address
// // is 'gatsby-source-prismic-test-site.prismic.io'.
// repositoryName: "https://americansign.cdn.prismic.io/api/v2",
// // An API access token to your prismic.io repository. This is optional.
// // You can generate an access token in the "API & Security" section of
// // your repository settings. Setting a "Callback URL" is not necessary.
// // The token will be listed under "Permanent access tokens".
// accessToken:
// "MC5YMUZ3OVJBQUFHWUlURGF6.MRtFW--_ve-_vQjvv704Zmo6YHzvv73vv70z77-977-9S--_ve-_ve-_vWPvv71B77-977-9A--_ve-_ve-_vQ",
// // If you provide a release ID, the plugin will fetch data from Prismic
// // for a specific release. A Prismic release is a way to gather a
// // collection of changes for a future version of your website. Note that
// // if you add changes to a release, you'll need to rebuild your website
// // to see them.
// // See: https://user-guides.prismic.io/en/collections/22653-releases-scheduling#the-basics-of-a-release
// //releaseID: 'example-eiyaingiefahyi7z',
// // Set a link resolver function used to process links in your content.
// // Fields with rich text formatting or links to internal content use this
// // function to generate the correct link URL.
// // The document node, field key (i.e. API ID), and field value are
// // provided to the function, as seen below. This allows you to use
// // different link resolver logic for each field if necessary.
// // See: https://prismic.io/docs/javascript/query-the-api/link-resolving
// linkResolver: ({ node, key, value }) => doc => {
// // Your link resolver
// },
// // Set a list of links to fetch and be made available in your link
// // resolver function.
// // See: https://prismic.io/docs/javascript/query-the-api/fetch-linked-document-fields
// fetchLinks: [
// // Your list of links
// ],
// // Set an HTML serializer function used to process formatted content.
// // Fields with rich text formatting use this function to generate the
// // correct HTML.
// // The document node, field key (i.e. API ID), and field value are
// // provided to the function, as seen below. This allows you to use
// // different HTML serializer logic for each field if necessary.
// // See: https://prismic.io/docs/nodejs/beyond-the-api/html-serializer
// htmlSerializer: ({ node, key, value }) => (
// type,
// element,
// content,
// children
// ) => {
// // Your HTML serializer
// },
// // Provide an object of Prismic custom type JSON schemas to load into
// // Gatsby. This is required.
// schemas: {
// // Your custom types mapped to schemas
// Main: require("./src/schemas/Main.json"),
// },
// // Set a default language when fetching documents. The default value is
// // '*' which will fetch all languages.
// // See: https://prismic.io/docs/javascript/query-the-api/query-by-language
// lang: "*",
// // Add the Prismic Toolbar script to the site. Defaults to false.
// // Set to "legacy" if your repository requires the older toolbar script.
// // See: https://prismic.io/docs/rest-api/beyond-the-api/the-preview-feature
// prismicToolbar: true,
// // Set a function to determine if images are downloaded locally and made
// // available for gatsby-transformer-sharp for use with gatsby-image.
// // The document node, field key (i.e. API ID), and field value are
// // provided to the function, as seen below. This allows you to use
// // different logic for each field if necessary.
// // This defaults to always return false.
// shouldDownloadImage: ({ node, key, value }) => {
// // Return true to download the image or false to skip.
// },
// // Provide a default set of Imgix image transformations applied to
// // Imgix-backed gatsby-image fields. These options will override the
// // defaults set by Prismic.
// // See: https://docs.imgix.com/apis/url
// imageImgixParams: {
// auto: "compress,format",
// fit: "max",
// q: 50,
// },
// // Provide a default set of Imgix image transformations applied to
// // the placeholder images of Imgix-backed gatsby-image fields. These
// // parameters will be applied over those provided in the above
// // `imageImgixParams` option.
// // See: https://docs.imgix.com/apis/url
// imagePlaceholderImgixParams: {
// w: 100,
// blur: 15,
// q: 50,
// },
// // Set the prefix for the filename where type paths for your schemas are
// // stored. The filename will include the MD5 hash of your schemas after
// // the prefix.
// // This defaults to 'prismic-typepaths---${repositoryName}'.
// typePathsFilenamePrefix:
// "prismic-typepaths---gatsby-source-prismic-test-site",
// },
// },
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
include: /\.svg$/, // See below to configure properly
},
},
},
],
}