-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
executable file
·57 lines (55 loc) · 1.54 KB
/
gatsby-config.js
File metadata and controls
executable file
·57 lines (55 loc) · 1.54 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
require("dotenv").config({path: `.env`,})
module.exports = {
siteMetadata: {
title: "GitBikeCo",
siteTitleDefault: "git-bike-co",
siteUrl: "https://donthaveoneyet.com",
hrefLang: "en",
viewport: "width=device-width, initial-scale=1.0, minimum-scale=1.0",
description:
"Gatsby V3 shopify rc starter modfied - store / product context and my own sample products",
siteImage: "/default-og-image.jpg",
twitter: "@blah",
},
flags: {
FAST_DEV: true,
},
flags: {
DEV_SSR: false,
},
plugins: [
{
resolve: "gatsby-source-shopify",
options: {
apiKey: process.env.SHOPIFY_API_KEY,
password: process.env.SHOPIFY_SHOP_PASSWORD,
storeUrl: process.env.GATSBY_SHOPIFY_STORE_URL,
shopifyConnections: ["collections"],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images/`,
},
},
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sitemap",
"gatsby-plugin-gatsby-cloud",
"gatsby-plugin-styled-components",
"gatsby-optional-chaining",
"gatsby-plugin-no-index",
// Add your Google Analytics ID to the .env file to enable
// Otherwise, this plugin can be removed
process.env.GOOGLE_ANALYTICS_ID && {
resolve: "gatsby-plugin-google-analytics",
options: {
trackingId: process.env.GOOGLE_ANALYTICS_ID,
},
},
].filter(Boolean),
}