-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
75 lines (74 loc) · 1.81 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
/* eslint-disable @typescript-eslint/no-var-requires */
const config = require("./config")
module.exports = {
flags: {
DEV_SSR: false,
},
siteMetadata: {
title: config.title,
description: config.description,
keywords: config.keywords,
siteUrl: config.siteUrl,
},
plugins: [
`gatsby-plugin-typescript`,
`gatsby-plugin-react-helmet`,
{
resolve: "gatsby-plugin-material-ui",
// If you want to use styled components you should change the injection order.
options: {
stylesProvider: {
injectFirst: true,
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.title,
short_name: config.title,
start_url: `/`,
background_color: config.themeColor,
theme_color: config.themeColor,
display: `minimal-ui`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
//`gatsby-transformer-yaml`,
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/content`,
name: "content",
},
},
{
resolve: `gatsby-plugin-graphql-codegen`,
options: {
documentPaths: [
"./src/**/*.{ts,tsx}",
"./node_modules/gatsby-source-sanity/fragments/*.js",
],
},
},
`gatsby-plugin-offline`,
"gatsby-plugin-htaccess",
{
resolve: "gatsby-plugin-nprogress",
options: {
color: config.themeColor,
},
},
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: config.siteUrl,
sitemap: `${config.siteUrl}/sitemap.xml`,
policy: [{ userAgent: "*", allow: "/" }],
},
},
],
}