-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
41 lines (40 loc) · 954 Bytes
/
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
require("dotenv").config();
module.exports = {
plugins: [
"gatsby-plugin-netlify",
`gatsby-plugin-react-helmet`,
{
resolve: "gatsby-plugin-preload-fonts",
options: {
crossOrigin: "use-credentials", // optional
formats: ["gltf", "glb", "jpg", "png", "jpeg"], // add any other formats you want to preload
usePreconnect: true, // optional
},
},
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-theme-material-ui`,
options: {
webFontsConfig: {
fonts: {
google: [
{
family: `Kanit`,
variants: [`300`, `400`, `500`, `700`],
},
],
},
},
},
},
],
};