-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
87 lines (77 loc) · 2.67 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
78
79
80
81
82
83
84
85
86
87
const TITLE = 'Micro Expédition'
const BASE_URL = 'https://microexpedition.fr'
const DESCRIPTION =
"Découvrez les topos détaillés d'aventures sportives en montagne. Parfois engagées. Souvent loin des foules. Toujours mémorables."
const COVER_IMAGE_URL = `https://res.cloudinary.com/monpetitsommet/image/upload/v1604305406/vercors/randonnees/traversee-vercors-balcon-est/intro_xhbx3y.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 },
],
link: [
{ rel: 'icon', type: 'image/ico', href: '/favicon.ico' },
{ hid: 'canonical', rel: 'canonical', href: BASE_URL },
],
script: [
{
src: 'https://beamanalytics.b-cdn.net/beam.min.js',
'data-token': 'a2aab44b-048b-4696-9171-c8b470bc8ba5',
async: true
},
],
},
},
runtimeConfig: {
public: {
ignApiKey: process.env.NUXT_IGN_API_KEY,
maptilerKey: process.env.MAPTILER_KEY
},
},
nitro: {
prerender: { routes: ['/sitemap.xml'] },
},
modules: ['@nuxtjs/tailwindcss', '@nuxt/content', 'nuxt-icon'],
content: {
markdown: {
tags: { h1: 'h1', h2: 'h2', h3: 'h3', h4: 'h4', h5: 'h5', h6: 'h6' },
},
},
tailwindcss: { viewer: false },
build: {
transpile: ['lite-youtube-embed', '@headlessui/vue'],
},
plugins: ['~/plugins/youtube.client.js'],
css: ['lite-youtube-embed/src/lite-yt-embed.css'],
vue: {
compilerOptions: {
isCustomElement: (tag) => ['lite-youtube'].includes(tag),
},
},
compatibilityDate: '2024-10-07',
})