-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.ts
53 lines (51 loc) · 1.36 KB
/
gatsby-config.ts
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
import type { GatsbyConfig } from "gatsby";
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
const config: GatsbyConfig = {
siteMetadata: {
title: 'Thiago Loschi',
siteUrl: `https://www.thiagoloschi.com`,
},
graphqlTypegen: true,
plugins: ["gatsby-plugin-sass", "gatsby-plugin-image", "gatsby-plugin-mdx", "gatsby-plugin-sharp", "gatsby-transformer-sharp", {
resolve: 'gatsby-source-filesystem',
options: {
"name": "pages",
"path": "./src/pages/"
},
__key: "pages"
}, {
resolve: 'gatsby-source-filesystem',
options: {
"name": "components",
"path": "./src/components/"
},
__key: "components"
}, {
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GOOGLE_TAG,
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
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: true,
},
},
}]
};
export default config;