generated from arkajyotiMukherjee/gatsby-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
110 lines (109 loc) · 2.96 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
102
103
104
105
106
107
108
109
110
const siteTitle = "Arkajyoti Mukherjee";
const siteDescription =
"Portfolio site for Arkajyoti Mukherjee | Fullstack developer | React | Golang | Flutter.";
const siteAuthor = "arkajyotiMukherjee";
const siteUrl = "https://arkajyotimukherjee.com/";
const siteImage = `${siteUrl}/icons/siteImage.png`;
const siteKeywords = [
"arko",
"arkajyotiMukherjee",
"arkajyoti",
"mukherjee",
"fullstack",
"portfolio",
"react",
"golang",
"flutter",
];
module.exports = {
siteMetadata: {
siteTitle,
siteDescription,
siteAuthor,
siteUrl,
siteKeywords,
siteImage,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/images`,
name: "images",
},
},
{
resolve: "gatsby-plugin-react-axe",
options: {
showInProduction: false,
// Options to pass to axe-core.
// See: https://github.com/dequelabs/axe-core/blob/master/doc/API.md#api-name-axeconfigure
axeOptions: {
// Your axe-core options.
},
},
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
"gatsby-plugin-react-helmet",
`gatsby-plugin-typescript`,
`gatsby-plugin-optimize-svgs`,
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: siteUrl,
sitemap: `${siteUrl}/sitemap/sitemap-index.xml`,
resolveEnv: () => process.env.GATSBY_ENV,
env: {
development: {
policy: [{ userAgent: "*", allow: ["/"] }],
},
production: {
policy: [{ userAgent: "*", allow: "/" }],
},
},
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: siteTitle,
short_name: siteTitle,
description: siteDescription,
start_url: `/`,
background_color: `#fff`,
theme_color: `#fff`,
display: `minimal-ui`,
icon: "src/images/logo.png",
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-N44RH0F4XQ", // Google Analytics / GA
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
optimize_id: "OPT_CONTAINER_ID",
anonymize_ip: true,
cookie_expires: 0,
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: false,
// Setting this parameter is also optional
respectDNT: true,
// Avoids sending pageview hits from custom paths
exclude: ["/preview/**", "/do-not-track/me/too/"],
},
},
},
],
};