-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.ts
74 lines (72 loc) · 2.07 KB
/
gatsby-config.ts
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
import config from "./src/data/config";
require("dotenv").config();
export default {
siteMetadata: {
title: config.title,
description: config.description,
image: config.featuredImage,
author: config.author,
siteUrl: config.siteUrl,
fbid: config.fbid,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: { placeholder: "blurred" },
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.title,
short_name: config.title,
start_url: `/`,
background_color: config.backgroundColor,
theme_color: config.themeColor,
display: `standalone`,
icon: config.icon,
cache_busting_mode: "none",
},
},
{
resolve: "gatsby-source-shopify",
options: {
password: process.env.SHOPIFY_SHOP_PASSWORD,
storeUrl: process.env.GATSBY_SHOPIFY_STORE_URL,
shopifyConnections: ["orders", "collections", "locations"],
},
},
{
resolve: `gatsby-plugin-graphql-codegen`,
options: {
fileName: `./gatsby-graphql.ts`,
documentPaths: ["./src/**/*.{ts,tsx}", "./node_modules/gatsby-*/**/*.js", "./gatsby-node.ts"],
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint: process.env.MAILCHIMP_ENDPOINT, // string; add your MC list endpoint here; see instructions below
timeout: 3500, // number; the amount of time, in milliseconds, that you want to allow mailchimp to respond to your request before timing out. defaults to 3500
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [config.googleAnalyticsTrackingID],
},
},
],
};