-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
143 lines (140 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
141
142
143
const { SocketAddress } = require("net");
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
siteMetadata: {
title: "Parks Australia",
},
plugins: [
"gatsby-plugin-gatsby-cloud",
{
// resolve: "gatsby-plugin-google-analytics",
// options: {
// trackingId: "FIXME",
// },
resolve: `gatsby-plugin-google-tagmanager`,
options: {
id: process.env.GATSBY_GTM_ID,
includeInDevelopment: false,
defaultDataLayer: { platform: `gatsby`, branch: process.env.BRANCH },
},
},
// {
// resolve: `gatsby-plugin-sass`,
// options: {
// additionalData: `@import "./src/css/bnp.scss";`,
// // additionalData: `@use 'globals' as *;`,
// // additionalData: `@import "./src/css/${process.env.GATSBY_PARK}.scss";`,
// // sassOptions: {
// // includePaths:[`./src/css/route/${process.env.GATSBY_PARK}`],
// // }
// }
// },
{
resolve: "gatsby-plugin-layout",
options: {
component: require.resolve(`./src/components/layout-${process.env.GATSBY_PARK}.tsx`),
},
},
"gatsby-plugin-image",
"gatsby-plugin-sass",
"gatsby-plugin-sharp",
{
resolve: "gatsby-plugin-typegen",
options: {
emitSchema: {
"src/__generated__/gatsby-introspection.json": true,
},
emitPluginDocuments: {
"src/__generated__/gatsby-plugin-documents.graphql": true,
},
},
},
"gatsby-plugin-react-helmet",
// "gatsby-plugin-sitemap",
{
resolve: "gatsby-plugin-manifest",
options: {
icon: "src/images/icon.png",
},
},
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "./src/pages/",
},
__key: "pages",
},
{
resolve: "gatsby-source-drupal",
options: {
baseUrl: "https://api.parksaustralia.gov.au",
// fastBuilds: true, // has issue with Drupal API key
// params: {
// "api-key": process.env.API_KEY,
// },
skipFileDownloads: true,
// disallowedLinkTypes: [`media--app_image`],
// filters: {
// Use includes so only the files associated with our decoupled content
// types are included.
// "node--page": "include=field_hero",
// "paragraph--figure": "include=field_media_image",
// "file--file": ""
// },
},
},
// {
// resolve: 'gatsby-plugin-load-script',
// options: {
// src: '/info-pullout.js', // Change to the script filename
// },
// },
// `gatsby-plugin-react-helmet`,
// `gatsby-plugin-image`,
// {
// resolve: `gatsby-source-filesystem`,
// options: {
// name: `images`,
// path: `${__dirname}/src/images`,
// },
// },
// `gatsby-transformer-sharp`,
// `gatsby-plugin-sharp`,
// {
// resolve: `gatsby-plugin-manifest`,
// options: {
// name: `gatsby-starter-default`,
// short_name: `starter`,
// start_url: `/`,
// background_color: `#663399`,
// // This will impact how browsers show your PWA/website
// // https://css-tricks.com/meta-theme-color-and-trickery/
// // theme_color: `#663399`,
// display: `minimal-ui`,
// icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
// },
// },
// {
// resolve: `gatsby-source-drupal`,
// options: {
// baseUrl: `https://dev-pa-cms.pantheonsite.io`,
// // fastBuilds: true, // has issue with Drupal API key
// params: {
// "api-key": process.env.API_KEY,
// },
// },
// },
],
};