-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
136 lines (136 loc) · 3.66 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
const path = require("path")
module.exports = {
pathPrefix: process.env.PATH_PREFIX || "",
siteMetadata: {
// edit below
title: `Agencia Global Website`,
author: `@agenciaglobal`,
description: `A Gatsby blog powered by Netlify CMS.`,
siteUrl: `https://www.global.tt`,
social: {
twitter: `@agenciaglobal`,
},
},
plugins: [
// `gatsby-plugin-layout`,
// `gatsby-plugin-material-ui`,
{
resolve: `gatsby-plugin-gtag`,
options: {
// your google analytics tracking id
trackingId: `G-H262HDNTFV`,
// Puts tracking script in the head instead of the body
head: true,
// enable ip anonymization
anonymize: true,
},
},
// {
// resolve: `gatsby-plugin-google-analytics`,
// options: {
// // The property ID; the tracking code won't be generated without it
// trackingId: "G-H262HDNTFV",
// // Defines where to place the tracking script - `true` in the head and `false` in the body
// head: true,
// }
// },
`gatsby-theme-material-ui`,
`gatsby-plugin-react-helmet`,
// filesystem
{
resolve: `gatsby-source-filesystem`,
options: { path: `${__dirname}/content`, name: `content` },
},
{
resolve: `gatsby-source-filesystem`,
options: { path: `${__dirname}/static/assets`, name: `assets` },
},
{
resolve: "gatsby-plugin-root-import",
options: {
src: path.join(__dirname, "src"),
content: path.join(__dirname, "content"),
pages: path.join(__dirname, "src/pages"),
shared: path.join(__dirname, "src/shared"),
components: path.join(__dirname, "src/components"),
static: path.join(__dirname, "static"),
},
},
`gatsby-plugin-typescript`,
`gatsby-plugin-feed-mdx`,
{
resolve: `gatsby-transformer-sharp`,
},
`gatsby-plugin-sharp`,
`gatsby-remark-images`,
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [".mdx", ".md"],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 590,
},
},
],
},
},
// components
// netlify
{
resolve: `gatsby-plugin-netlify-cms`,
options: { modulePath: `${__dirname}/src/cms.js` },
},
{
resolve: "gatsby-plugin-netlify-cache",
options: { cachePublic: true },
},
// // internationalization
// {
// resolve: `gatsby-plugin-react-i18next`,
// options: {
// path: `${__dirname}/src/locales`,
// languages: [`en`, `pt`],
// defaultLanguage: `pt`,
// i18nextOptions: {
// language: "pt",
// ns: ["translations"],
// defaultNS: "translations",
// returnObjects: true,
// debug: process.env.NODE_ENV === "development",
// react: {
// wait: true,
// },
// interpolation: {
// escapeValue: false, // not needed for react as it escapes by default
// },
// nsSeparator: false,
// },
// },
// },
// icon
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Starter Blog`,
short_name: `GatsbyJS`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
// edit below
icon: `static/assets/favicon.png`,
},
},
// typescript codegen
{
resolve: `gatsby-plugin-graphql-codegen`,
options: {
codegen: false,
fileName: `src/global.d.ts`,
},
},
],
}