-
Notifications
You must be signed in to change notification settings - Fork 19
/
nuxt.config.ts
77 lines (68 loc) · 2.29 KB
/
nuxt.config.ts
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
import config from './config.json';
const TITLE = `Cyclopolis - Suivi des ${config.revName.plural} par ${config.assoName}`;
const DESCRIPTION =
`Plateforme citoyenne et associative, par ${config.assoName}. État d'avancement, cartes interactives des itinéraires, détails, travaux : suivez le développement du réseau cyclable sécurisé lyonnais`;
const BASE_URL = 'https://cyclopolis.fr';
const COVER_IMAGE_URL = 'https://cyclopolis.lavilleavelo.org/cyclopolis.png';
export default defineNuxtConfig({
app: {
head: {
htmlAttrs: { lang: 'fr' },
title: TITLE,
meta: [
{ hid: 'description', name: 'description', content: DESCRIPTION },
// facebook
{ property: 'og:site_name', content: TITLE },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: BASE_URL },
{ hid: 'og:title', property: 'og:title', content: TITLE },
{
hid: 'og:description',
property: 'og:description',
content: DESCRIPTION
},
{ hid: 'og:image', property: 'og:image', content: COVER_IMAGE_URL },
{ property: 'og:image:width', content: '640' },
{ property: 'og:image:height', content: '476' },
// twitter
{ name: 'twitter:card', content: 'summary_large_image' },
{ hid: 'twitter:url', name: 'twitter:url', content: BASE_URL },
{ hid: 'twitter:title', name: 'twitter:title', content: TITLE },
{
hid: 'twitter:description',
name: 'twitter:description',
content: DESCRIPTION
},
{ hid: 'twitter:image', name: 'twitter:image', content: COVER_IMAGE_URL }
],
script: [
{
src: 'https://beamanalytics.b-cdn.net/beam.min.js',
'data-token': process.env.BEAM_ANALYTICS_TOKEN,
async: true
}
]
}
},
runtimeConfig: {
public: {
maptilerKey: process.env.MAPTILER_KEY
}
},
modules: ['@nuxtjs/tailwindcss', '@nuxt/content', '@nuxt/icon'],
content: {
markdown: {
tags: { h1: 'h1', h5: 'h5', h6: 'h6' }
}
},
tailwindcss: { viewer: false },
nitro: {
prerender: {
routes: ['/sitemap.xml']
}
},
build: {
transpile: ['@headlessui/vue']
},
compatibilityDate: '2024-08-11'
});