-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
89 lines (84 loc) · 2.06 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
const path = require("path");
require("dotenv");
const AirTableTableNames = [
"Questions",
"Categories",
"Buzzwords",
"Podcasts",
"Newsletters",
"Quizzes",
"Communities",
"Health",
"YouTube",
];
const config = {
siteMetadata: {
title: `Fluky.dev`,
description: `A collection of resources for front end developers. Coding quizzes, podcasts, newsletters, health, and more!`,
author: `gojutin`,
url: "https://www.fluky.dev",
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: path.join(__dirname, `src`, `images`),
name: "images",
},
},
{
resolve: `gatsby-source-airtable`,
options: {
apiKey: process.env.AIRTABLE_API_KEY,
tables: AirTableTableNames.map((name) => {
return {
baseId: process.env.AIRTABLE_BASE_ID,
tableName: name,
};
}),
},
},
`gatsby-plugin-styled-components`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-typescript`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Fluky.dev`,
short_name: `Fluky.dev`,
description: `Fluky.dev | Resources for front end developers.`,
start_url: `/`,
lang: "en",
background_color: `#16202b`,
theme_color: `#16202b`,
display: `minimal-ui`,
icon: "src/images/flukydev-icon.png",
icons: [
{
src: "flukydev-icon-512.png",
sizes: "512x512",
types: "image/png",
},
{
src: "flukydev-icon-192.png",
sizes: "192x192",
types: "image/png",
},
],
},
},
`gatsby-plugin-offline`,
],
};
if (process.env.CONTEXT === "production") {
const googleAnalyticsCfg = {
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_KEY,
},
};
config.plugins.push(googleAnalyticsCfg);
}
module.exports = config;