-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgatsby-config.js
85 lines (81 loc) · 3.04 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
const postcssGlobalData = require("@csstools/postcss-global-data");
const postcssCustomMedia = require("postcss-custom-media");
const linkResolver = require("./src/utils/linkResolver");
module.exports = {
siteMetadata: {
title: "ShelterTech - Technology for the underserved",
description:
"ShelterTech is solving the biggest technology challenges faced by those experiencing homelessness",
author: "ShelterTech",
},
plugins: [
"gatsby-plugin-ts-checker",
{
resolve: "gatsby-plugin-intercom-spa",
options: {
app_id: "w50oz3tb",
include_in_development: true,
delay_timeout: 1000,
},
},
"gatsby-transformer-sharp",
"gatsby-plugin-sharp",
"gatsby-plugin-image",
{
resolve: "gatsby-plugin-postcss",
options: {
postCssPlugins: [
// This is needed to allow the custom media definitions to be
// accessible in all CSS modules. See
// https://github.com/csstools/postcss-plugins/blob/768449ddc7e226e735b9e507fd4fbd4c89c8de6c/plugins/postcss-custom-media/README.md#modular-css-processing
postcssGlobalData({
files: ["src/stylesheets/global.css"],
}),
postcssCustomMedia,
],
},
},
{
// See https://github.com/angeloashmore/gatsby-source-prismic for the full
// list of options.
resolve: "gatsby-source-prismic",
options: {
// The name of your prismic.io repository. This is required.
// Example: 'gatsby-source-prismic-test-site' if your prismic.io address
// is 'gatsby-source-prismic-test-site.prismic.io'.
repositoryName: "sheltertech",
linkResolver,
// Provide an object of Prismic custom type JSON schemas to load into
// Gatsby. This is required.
schemas: {
// Your custom types mapped to schemas
footer: require("./src/schemas/footer.json"),
home_page: require("./src/schemas/home_page.json"),
volunteer_page: require("./src/schemas/volunteer_page.json"),
test: require("./src/schemas/test.json"),
team_member: require("./src/schemas/team_member.json"),
team: require("./src/schemas/team.json"),
post: require("./src/schemas/post.json"),
open_role: require("./src/schemas/open_role.json"),
blog_home: require("./src/schemas/blog_home.json"),
blog_post: require("./src/schemas/blog_post.json"),
blog_post_topic: require("./src/schemas/blog_post_topic.json"),
event: {},
},
},
},
{
resolve: "gatsby-plugin-prismic-previews",
options: {
repositoryName: "sheltertech",
},
},
],
graphqlTypegen: {
// Needed for CI so that the type stubs are available for type checking.
// They are otherwise only generated when running a development server, but
// it's difficult to start and stop the development server in a CI
// environment (hard to know when to send a Ctrl-C to the process in CI).
generateOnBuild: true,
},
};