-
Notifications
You must be signed in to change notification settings - Fork 61
/
gatsby-config.js
86 lines (76 loc) · 1.99 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
/* eslint-disable @typescript-eslint/camelcase, @typescript-eslint/no-var-requires */
const dotenv = require('dotenv');
dotenv.config();
const queries = require('./src/utils/algolia');
module.exports = {
siteMetadata: {
title: 'Checklist',
description: "The protocols we follow for the things we can't automate yet.",
author: '@atolye15',
siteUrl: 'https://checklist.atolye15.com',
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-39803605-26',
},
},
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://checklist.atolye15.com`,
stripQueryString: true,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'Checklist',
short_name: 'Checklist',
start_url: '/',
background_color: '#101013',
theme_color: '#ff0c6f',
display: 'minimal-ui',
icon: 'src/images/icon.png',
},
},
'gatsby-plugin-typescript',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'checklists',
path: `${__dirname}/checklists`,
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-component'],
},
},
'gatsby-plugin-graphql-codegen',
'gatsby-plugin-sass',
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: process.env.ALGOLIA_SKIP_INDEX === 'false' ? queries : [],
chunkSize: 10000,
},
},
'gatsby-plugin-sitemap',
],
};
/* eslint-enable @typescript-eslint/camelcase, @typescript-eslint/no-var-requires */