-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
82 lines (70 loc) · 1.6 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
extends: ['@nuxt/ui-pro'],
css: ['~/assets/style.css'],
app: {
head: {
link: [
{
rel: 'stylesheet',
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
integrity: 'sha384-wcIxkf4k558AjM3Yz3BBFQUbk/zgIYC2R0QpeeYb+TwlBVMrlgLqwRjRtGZiK7ww',
crossorigin: 'anonymous',
},
],
},
},
modules: [
'@nuxt/content',
'@nuxt/ui',
'@nuxtjs/sitemap',
'nuxt-meilisearch',
'@nuxtjs/web-vitals',
'@vueuse/nuxt',
'@nuxtjs/plausible',
'@nuxtjs/algolia',
],
algolia: {
apiKey: '8a0e8ff6ce82bb377db643e2203d4cc9',
applicationId: 'A96G3B0V8P',
docSearch: {
indexName: 'vknet',
},
},
components: {
global: true,
dirs: ['~/components'],
},
meilisearch: {
hostUrl: 'https://search.vkdoc.net',
searchApiKey: '3653930cde1ea048501e365b9cd24fc7df4a40248bb2ef185868468c3203ccf8',
},
site: {
url: 'https://vkdoc.net',
},
routeRules: {
'/chapters': { redirect: '/chapters/introduction' },
'/chapters/**': { isr: true, prerender: true },
'/man/**': { isr: true, prerender: true },
'/extensions/**': { isr: true, prerender: true },
},
plausible: {
apiHost: 'https://analytics.vkdoc.net',
},
router: {
prefetchLinks: false,
},
nitro: {
prerender: {
routes: [
'/',
'/copyright',
],
},
},
runtimeConfig: {
plausibleToken: ''
},
compatibilityDate: '2024-10-21'
})