-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
140 lines (137 loc) · 3.95 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
137
138
139
140
// support for .env, .env.development, and .env.production
require("dotenv").config()
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
const path = require(`path`)
const tailwindConfig = require("./tailwind.config.js")
module.exports = {
//configuration object
trailingSlash: `always`,
siteMetadata: {
title: `OKEBET`,
description: `OKEBET is the partnership of father and son bookmakers Norm and Gary Oke and M.B. Opie and S.C. McKay. Norm was first licensed as a Victorian bookmaker in 1998 and has worked at Victorian city and country race meetings. Norm currently works at all Melbourne metro tracks and several Victorian provincial tracks.`,
author: `@okebet`,
siteUrl: `https://tips.okebet.com.au`,
},
plugins: [
"gatsby-plugin-react-helmet",
"gatsby-plugin-image",
`gatsby-transformer-json`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-scroll-reveal`,
{
resolve: "gatsby-plugin-sass",
options: {
postCssPlugins: [
require("postcss-preset-env")({
stage: 0,
}),
require(`tailwindcss`)(tailwindConfig),
require(`autoprefixer`),
require(`cssnano`),
],
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: `${__dirname}/src/images`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: `${__dirname}/src/pages`,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "templates",
path: `${__dirname}/src/templates`,
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: "OKEBET - Victorian bookmaker",
short_name: "OKEBET",
start_url: "/",
// These can be imported once ESM support lands
background_color: "#02111d",
theme_color: "#02111d",
icon: "src/images/icon.png",
},
},
{
resolve: "gatsby-plugin-root-import",
options: {
src: path.join(__dirname, "src"),
components: path.join(__dirname, "src/components"),
sections: path.join(__dirname, "src/sections"),
images: path.join(__dirname, "src/images"),
styles: path.join(__dirname, "src/styles"),
pages: path.join(__dirname, "src/pages"),
},
},
{
resolve: `gatsby-source-wordpress`,
options: {
url: process.env.WPGRAPHQL_URL,
schema: {
perPage: 20, // currently set to 100
requestConcurrency: 5, // currently set to 15
previewRequestConcurrency: 2, // currently set to 5
},
},
},
{
// Dont include url from SSG
resolve: "gatsby-plugin-exclude",
options: { paths: ["/contact-iframe"] },
},
{
resolve: "gatsby-plugin-sitemap",
options: {
output: "/",
exclude: ["/category/uncategorized", "/search-result"],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"G-3GTRM84Q1V", // Your GA4 Measurement ID
],
gtagConfig: {
anonymize_ip: true, // Anonymizes IP addresses to comply with GDPR
},
pluginConfig: {
head: true, // Places the script in the head section of the HTML
respectDNT: true, // Respects "Do Not Track" browser settings
exclude: ["/preview/**", "/do-not-track/me/too/"], // Optional paths to exclude
},
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "'UA-269646163-1",
head: true,
anonymize: true,
respectDNT: true,
pageTransitionDelay: 0,
},
},
// {
// resolve: "@mkitio/gatsby-theme-password-protect",
// options: {
// password: "welcome", // delete or `undefined` to disable password protection
// },
// },
],
}