-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
nuxt.config.ts
65 lines (63 loc) · 2.3 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
import { defineNuxtConfig } from 'nuxt3'
const title = 'Explore Nuxt Modules'
const description = 'Discover our list of modules to supercharge your Nuxt project. Created by the Nuxt team and community.'
const url = 'https://modules.nuxtjs.org'
export default defineNuxtConfig({
meta: {
bodyAttrs: {
class: 'min-h-screen'
},
title,
meta: [
{ hid: 'charset', charset: 'utf-8' },
{ hid: 'viewport', name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: description },
{ hid: 'og:site_name', property: 'og:site_name', content: title },
{ hid: 'og:description', property: 'og:description', content: description },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: url },
{ hid: 'og:image', property: 'og:image', content: `${url}/preview.png` },
// Twitter Card
{ hid: 'twitter:card', name: 'twitter:card', content: 'summary_large_image' },
{ hid: 'twitter:site', name: 'twitter:site', content: '@nuxt_js' },
{ hid: 'twitter:title', name: 'twitter:title', content: title },
{ hid: 'twitter:description', name: 'twitter:description', content: description },
{ hid: 'twitter:image', name: 'twitter:image', content: `${url}/preview.png` },
{ hid: 'twitter:image:alt', name: 'twitter:image:alt', content: title }
],
link: [
{ hid: 'favicon', rel: 'icon', type: 'image/png', href: '/icon.png' },
{ hid: 'search', rel: 'search', type: 'application/opensearchdescription+xml', href: '/search.xml', title: 'Nuxt Modules' }
]
},
components: true,
buildModules: [
// https://image.nuxtjs.org
// '@nuxt/image',
// https://pwa.nuxtjs.org
'@nuxtjs/pwa',
// https://github.com/moritzsternemann/vue-plausible
// 'vue-plausible',
// https://html-validator.nuxtjs.org
// '@nuxtjs/html-validator',
'@unocss/nuxt',
'@vueuse/nuxt'
],
vueuse: {
autoImports: true,
ssrHandlers: true
},
unocss: {
preflight: false,
autoImport: false
},
manifest: {
name: 'Nuxt Modules',
short_name: 'Nuxt Modules',
description: 'Explore Nuxt Modules',
theme_color: '#003c3c'
}
// plausible: {
// domain: 'modules.nuxtjs.org'
// },
})