-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
142 lines (142 loc) · 3.79 KB
/
nuxt.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
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'Beryl Thyer Memorial Africa Trust',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content: 'width=device-width, initial-scale=1'
},
{
name: 'google-site-verification',
content: '2FZLnBurZMDuqVZaAY0eo8YWmdqb80Tay42vJrFxVgg'
},
{
hid: 'description',
name: 'description',
content:
'Beryl Thyer Memorial Africa Trust is a UK charity caring for African children with Burkitt lymphoma and other cancers'
}
],
script: [
{
src:
'https://cdn.polyfill.io/v2/polyfill.js?features=Array.prototype.includes,Array.prototype.find,Promise'
},
{ innerHTML: `document.documentElement.classList.add('enhanced')` },
{
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'Organization',
url: 'https://btmat.org.uk',
name: 'Beryl Thyer Memorial Africa Trust',
alternateName: 'BTMAT',
legalName: 'Beryl Thyer Memorial Africa Trust',
description:
'Beryl Thyer Memorial Africa Trust is a UK charity caring for African children with Burkitt lymphoma and other cancers',
leiCode: '1112603',
contactPoint: {
'@type': 'ContactPoint',
telephone: '+44 1536 518008',
contactType: 'customer support',
email: '[email protected]'
},
address: {
'@type': 'PostalAddress',
postalCode: 'NN16 9XL',
addressRegion: 'Northamptonshire',
addressLocality: 'Near Kettering',
streetAddress: '19 Warkton Village'
},
founder: {
'@type': 'Person',
familyName: 'McCormick',
givenName: 'Peter'
},
foundingDate: '20060101T000000-0800',
logo: 'https://btmat.org.uk/logo.svg'
}),
type: 'application/ld+json'
}
],
__dangerouslyDisableSanitizers: ['script'],
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }]
},
modules: ['@nuxtjs/sentry', '@nuxtjs/sitemap', '@nuxtjs/redirect-module'],
modern: true,
target: 'static',
generate: {
fallback: true
},
sitemap: {
routes: [
'/',
{
url: '/news',
changefreq: 'daily'
},
'/cancer/burkitt',
'/cancer/research',
'/cancer/follow-up',
'/cancer/future',
'/cancer/other-cancers',
'/cancer/diagnostic-and-treatment-costs',
'/hospitals',
'/gallery',
'/press',
'/about/out-work',
'/about/beryl-thyer-memorial-africa-trust-btmat',
'/about/founder',
'/about/supporters',
'/about/hq',
'/about/south-africa',
'/support/donate',
'/support/work-with-us'
]
},
redirect: [
{
from: '^/about/the-trust',
to: '/about/beryl-thyer-memorial-africa-trust-btmat',
statusCode: 301
}
],
plugins: [
{ src: '~/plugins/webfont-loader.js', ssr: false },
{ src: '~/plugins/navigation.js' },
{ src: '~/plugins/ga.js', ssr: false }
],
sentry: {
dsn:
'https://dfda62d8d7b849d28eeed952e5edd2c7:[email protected]/284042'
},
/*
** Customize the progress bar color
*/
loading: { color: '#009688', height: '2px' },
/*
** Add global styles
*/
css: ['~/assets/styles/main.scss'],
/*
** Build configuration
*/
build: {
extend(config, ctx) {
if (ctx.isDev && process.client) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
});
}
}
}
};