-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
91 lines (89 loc) · 2.57 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
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: `Andrew Enger`,
siteUrl: `https://www.anenger.com`,
description: `Andrew Enger is a Software Engineer at Microsoft. He enjoys creating interactive experiences on the web.`,
twitterUsername: `@securecop`,
image: `/icon.png`,
},
plugins: [
{
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-9Y7BMCXF75"],
// This config will be shared across all trackingIds
gtagConfig: {
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,
// Delays processing pageview events on route update (in milliseconds)
delayOnRouteUpdate: 0,
},
},
},
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "static/icon.png",
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: `content`,
path: `${__dirname}/src/content/`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [{ resolve: "gatsby-remark-external-links" }],
},
},
{
/* Include plugin */
resolve: "gatsby-omni-font-loader",
/* Plugin options */
options: {
/* Font loading mode */
mode: "async",
/* Enable font loading listener to handle FOUT */
enableListener: true,
/* Preconnect URL-s. This example is for Google Fonts */
preconnect: ["https://fonts.gstatic.com"],
/* Web fonts. File link should point to font CSS file. */
web: [
{
/* Exact name of the font as defied in @font-face CSS rule */
name: "Unbounded",
/* URL to the font CSS file with @font-face definition */
file: "https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&display=swap",
},
],
},
},
],
};