generated from expertisesolutions/quickstart-gatsby-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
91 lines (79 loc) · 2.44 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
const path = require('path');
module.exports = {
pathPrefix: '/quickstart-gatsbyserver',
siteMetadata: {
title: 'quickstart-gatsbyserver',
description: 'Expertise Solutions quickstart/guide on Gatsby Apps',
siteUrl: 'http://localhost:8000',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-plugin-nprogress',
options: {
color: 'tomato',
showSpinner: false
}
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
// The property ID; the tracking code won't be generated without it
trackingId: 'YOUR_GOOGLE_ANALYTICS_TRACKING_ID'
// other options:
// https://www.gatsbyjs.com/plugins/gatsby-plugin-google-analytics/?=gatsby-plugin-google-analytics
}
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'GatsbyJS',
short_name: 'GatsbyJS',
start_url: '/',
background_color: '#f7f0eb',
theme_color: '#a2466c',
display: 'standalone',
icon: 'src/assets/logo.png' // 512x512
}
},
{
resolve: 'gatsby-plugin-styled-components',
options: {
displayName: process.env.NODE_ENV !== 'production'
// Add any options here
}
},
/* define what is page and what is not */
{
// You can have multiple instances of this plugin
// to create pages from React components in different directories.
//
// The following sets up the pattern of having multiple
// "pages" directories in your project
// You can also overwrite the default behavior for src/pages
// This changes the page-creator instance used by Gatsby
resolve: 'gatsby-plugin-page-creator',
options: {
path: path.join(`${__dirname}`, 'src/pages'),
// ignore styles
ignore: ['**/styles.js']
}
},
// use this plugin last, when using manifest
'gatsby-plugin-offline'
]
};
/*
* for URL canonica
* gatsby-plugin-canonical-urls
*/
/*
* about plugin gatsby-plugin-react-helmet
* With this plugin, attributes you add in their component, e.g. title, meta
* attributes, etc. will get added to the static HTML pages Gatsby builds.
*
* This is important not just for site viewers, but also for SEO — title and
* description metadata stored in the document head is a key component used
* by Google in determining placement in search results.
*/