-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
48 lines (42 loc) · 1.07 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
siteUrl: "https://www.yourdomain.tld",
title: "portfolio",
},
plugins: [
"gatsby-plugin-react-helmet",
// styling
"gatsby-plugin-sass",
// images
"gatsby-plugin-image",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
// scrollTo (animated scrolling to different sections)
"gatsby-plugin-smoothscroll",
// filesystem resources (ex: images)
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
// google analytics (https://www.gatsbyjs.com/plugins/gatsby-plugin-google-gtag/)
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
process.env.GATSBY_GA, // Google Analytics / GA
],
pluginConfig: {
head: false,
},
},
},
],
};