-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgatsby-config.js
More file actions
90 lines (89 loc) · 2.37 KB
/
Copy pathgatsby-config.js
File metadata and controls
90 lines (89 loc) · 2.37 KB
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
90
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
flags: {
DEV_SSR: false,
},
siteMetadata: {
siteUrl: "https://transit.det.city",
title: "transit.det.city",
description: "Real-time transit information for Detroit and Southeast Michigan",
author: "transit.det.city",
},
plugins: [
"gatsby-plugin-netlify",
"gatsby-plugin-postcss",
"gatsby-plugin-image",
// {
// resolve: "gatsby-plugin-google-analytics",
// options: {
// trackingId: "",
// },
// },
"gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "transit.det.city",
short_name: "transit.det.city",
description: "Transit information for Detroit/Windsor/Southeast Michigan",
start_url: "/",
background_color: "#ffffff",
theme_color: "#1f2937", // Dark gray theme color
display: "standalone",
orientation: "portrait",
icon: "src/images/icon.png",
categories: ["travel", "navigation", "utilities"],
scope: "/",
lang: "en",
cache_busting_mode: "none",
crossOrigin: "use-credentials"
},
},
"gatsby-plugin-offline", // Must be listed after gatsby-plugin-manifest
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/components/layout.js`)
}
},
"gatsby-plugin-mdx",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: "gatsby-source-pg",
options: {
connectionString: process.env.PG_CONN,
schema: "gtfs",
refetchInterval: 60, // Refetch data every 60 seconds
appendPlugins: [require("@graphile-contrib/pg-simplify-inflector"), require("postgraphile-plugin-connection-filter")],
},
},
{
resolve: "gatsby-source-sanity",
options: {
projectId: process.env.SANITY_PROJECT_ID,
dataset: process.env.SANITY_DATASET,
token: process.env.SANITY_TOKEN,
watchMode: true,
}
}
]
};