-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
112 lines (108 loc) · 2.43 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
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
site: {
url: '',
name: '',
author: '',
longAuthor: '',
homepage: '',
description: '',
},
githubToken: '',
oss: {
region: '',
accessKeyId: '',
accessKeySecret: '',
bucket: '',
},
},
future: {
// https://github.com/nuxt/nuxt/pull/27029
compatibilityVersion: 4,
},
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@nuxt/ui',
'@nuxt/eslint',
'@vueuse/nuxt',
'@nuxtjs/mdc',
'@pinia/nuxt',
'@nuxt/content',
'nuxt-echarts',
// '@nuxtjs/sitemap',
'nuxt-og-image',
// '@nuxtjs/robots',
'nuxt-schema-org',
// 'nuxt-link-checker',
'nuxt-seo-utils',
'nuxt-umami',
],
schemaOrg: {
identity: 'Organization',
},
seo: {
meta: {
description: 'This is a demo of Nuxt SEO showcasing all of the modules.',
themeColor: [
{ content: '#18181b', media: '(prefers-color-scheme: dark)' },
{ content: 'white', media: '(prefers-color-scheme: light)' },
],
},
},
css: ['~/assets/css/main.css'],
eslint: {
config: {
standalone: false,
},
checker: {
exclude: ['**/*.md', 'app/**/*.vue'],
},
},
content: {
build: {
pathMeta: {},
markdown: {
highlight: {
langs: ['json', 'js', 'ts', 'html', 'css', 'vue', 'shell', 'mdc', 'md', 'yaml', 'go', 'rust', 'tsx', 'jsx'],
theme: {
// Default theme (same as single string)
default: 'github-light',
// Theme used if `html.dark`
dark: 'one-dark-pro',
// Theme used if `html.sepia`
sepia: 'monokai',
},
},
},
},
renderer: {
anchorLinks: { h1: true, h2: true, h3: true, h4: true },
},
watch: {
enabled: true,
// ws: true,
},
studio: {
enabled: true,
gitInfo: {
name: 'QBlog',
owner: 'Ocyss',
url: 'https://github.com/Ocyss/QBlog',
},
},
},
umami: {
autoTrack: true,
ignoreLocalhost: true,
// proxy: 'cloak',
// useDirective: true,
// excludeQueryParams: false,
// domains: ['cool-site.app', 'my-space.site'],
// customEndpoint: '/my-custom-endpoint',
// enabled: false,
// logErrors: true,
// tag: 'website-variation-123',
},
})