generated from ongov/Template-repository
-
Notifications
You must be signed in to change notification settings - Fork 12
/
gatsby-config.js
99 lines (96 loc) · 3.31 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
module.exports = {
siteMetadata: {
en: {
title: `Coronavirus (COVID-19) self-assessment`,
description: `Take this self-assessment if you think you have coronavirus (COVID-19) or have been in close contact with someone who has it.`,
author: `@ONThealth`,
twitter_site: `@ONThealth`,
og_url: `https://covid-19.ontario.ca/self-assessment`,
og_title: `COVID-19 Self Assessment for Ontarians`,
og_image: `https://covid-19.ontario.ca/covid-19-sat-assets/social_image_en.png`,
og_locale: `en_CA`,
},
fr: {
title: `Autoévaluation - nouveau coronavirus (COVID-19)`,
description: `Si vous croyez que vous présentez des symptômes du coronavirus 2019 (COVID-19) ou si vous avez été en contact étroit avec une personne l’ayant contracté, servez-vous de cet outil d’autoévaluation pour vous aider à déterminer si vous avez besoin de recevoir d’autres soins...`,
author: `@ONThealth`,
twitter_site: `@ONThealth`,
og_url: `https://covid-19.ontario.ca/autoevaluation`,
og_title: `Autoévaluation COVID-19 pour les Ontariens`,
og_image: `https://covid-19.ontario.ca/covid-19-sat-assets/social_image_fr.png`,
og_locale: `fr_CA`,
},
},
assetPrefix: "covid-19-sat-assets",
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-build-date`,
{
resolve: `gatsby-plugin-react-helmet-canonical-urls`,
options: {
siteUrl: `https://covid-19.ontario.ca`,
},
},
{
resolve: "gatsby-plugin-preconnect",
options: {
domains: ["https://www.google-analytics.com", "https://www.googletagmanager.com"],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `stylesheets`,
path: `${__dirname}/src/stylesheets`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `fonts`,
path: `${__dirname}/src/fonts`,
},
},
`gatsby-plugin-styled-components`,
{
resolve: "gatsby-plugin-anchor-links",
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: "gatsby-plugin-asset-path",
options: {
removeMapFiles: true,
fileTypes: ["js", "map", "css", "png"],
},
},
`gatsby-plugin-remove-trailing-slashes`,
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: "GA_CODE",
// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: { platform: "gatsby" },
// Specify optional GTM environment details.
// gtmAuth: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_AUTH_STRING",
// gtmPreview: "YOUR_GOOGLE_TAGMANAGER_ENVIRONMENT_PREVIEW_NAME",
// dataLayerName: "YOUR_DATA_LAYER_NAME",
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}