-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgatsby-config.js
101 lines (99 loc) · 3.05 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
90
91
92
93
94
95
96
97
98
99
100
101
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`
})
const siteMetadata = require("./static/admin/site_metadata")
const blogOptions = require("./static/admin/blog_options")
const mailchimpOptions = require("./static/admin/mailchimp_options")
blogOptions.siteMetadata = siteMetadata
const shopOptions = require("./static/admin/shop_options")
const shopifyOptions = require('./gatsby-shopifystore')
//set shopify buy button options
shopOptions.productOptions = shopifyOptions
module.exports = {
siteMetadata: siteMetadata,
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/static/images/`,
name: `images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/components/`,
name: `components`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/pages/`,
name: `pages`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/content/posts/`,
name: `posts`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: "gatsby-theme-blogify",
options: blogOptions,
},
{
resolve: "gatsby-theme-shopifystore",
options: shopOptions
},
{
resolve: "gatsby-theme-mailchimped",
options: mailchimpOptions,
},
`gatsby-plugin-layout`,
`gatsby-plugin-sass`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-twitter`,
// this (optional) plugin enables Progressive Web App + Offline functionality
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'vegefoods-colorlib-gatsby-shopify',
short_name: 'vegefoods',
description: 'A simple starter to get up and developing quickly with Gatsby + Shopify and a stunning theme',
homepage_url: 'https://vegefoods-colorlib-gatsby-shopify.netlify.com',
start_url: '/',
background_color: '#fff',
theme_color: '#673ab7',
display: 'standalone',
crossOrigin: `use-credentials`,
icons: [
{
src: '/img/android-chrome-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/img/android-chrome-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
},
},
// To learn more, visit: https://gatsby.dev/offline
{
resolve: `gatsby-plugin-offline`,
options: {
cacheId: `vegefoods-theme-offline`
}
},
`gatsby-plugin-netlify-cache`
],
}