-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
88 lines (87 loc) · 2.12 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
require("dotenv").config({ path: ".env" })
module.exports = {
siteMetadata: {
title: `crushingwfh`,
description: `All the tools you need so that you can work from home!`,
author: `Tiago Sanchez`,
siteUrl: "https://crushingwfh.com",
icon: `src/images/icon.png`,
twitter: `@tiagofsanchez`,
},
plugins: [
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: `rgba(102, 51, 153, 1)`,
showSpinner: true,
},
},
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`${__dirname}/src/components/layout`),
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_API_KEY,
tables: [
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: `WFHTOOLS`,
mapping: { Screenshot: `fileNode`, Thumbnail: `fileNode` },
},
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: `Icon`,
mapping: { Icon: `fileNode` },
},
],
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: `veix4kn3d9am`,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
}
},
`gatsby-plugin-react-helmet`,
`gatsby-transformer-remark`,
`gatsby-plugin-material-ui`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-161261182-1",
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `crushingWFH`,
short_name: `crushingWFH`,
start_url: `/?source=pwa'`,
background_color: `#f7f0eb`,
theme_color: `#663399`,
display: `standalone`,
icon: `./src/images/laptop.svg`,
},
},
{
resolve:`gatsby-plugin-offline`,
options: {
precachePages: [`/search/`, `/`],
},
}
],
}