This repository was archived by the owner on Nov 13, 2023. It is now read-only.
forked from gatsbyjs-ecommerce/web-v1-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
84 lines (83 loc) · 2.04 KB
/
Copy pathgatsby-config.js
File metadata and controls
84 lines (83 loc) · 2.04 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
const path = require(`path`);
require('dotenv').config();
const config = require('./src/config/index.js');
module.exports = {
siteMetadata: {
title: config.siteName,
author: config.author,
description: config.description,
siteUrl: config.siteUrl,
},
plugins: [
`gatsby-plugin-netlify`,
`gatsby-plugin-react-next`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-nprogress`,
options: {
color: config.themeColor,
showSpinner: false,
},
},
`gatsby-transformer-json`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: path.join(__dirname, `data`),
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_DELIVERY_API_TOKEN,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 690,
},
},
{
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.0725rem`,
},
},
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
],
},
},
// {
// resolve: `gatsby-source-medium`,
// options: {
// username: `every-day-organic`,
// },
// },
`gatsby-plugin-sitemap`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.siteName,
short_name: config.siteName,
start_url: config.siteUrl,
background_color: config.backgroundColor,
theme_color: config.themeColor,
display: 'minimal-ui',
icon: './static/images/logo.png',
},
},
`gatsby-plugin-offline`,
],
};