-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathnuxt.config.ts
86 lines (85 loc) · 2.45 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
import yaml from '@rollup/plugin-yaml'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@nuxt/ui-pro',
'@nuxt/content',
'@nuxt/image',
'@nuxt/scripts',
'@nuxtjs/plausible',
'@vueuse/nuxt',
'nuxt-og-image',
'nuxt-cloudflare-analytics',
'nuxt-llms'
],
devtools: {
enabled: true
},
css: ['~/assets/main.css'],
content: {
build: {
markdown: {
highlight: {
langs: ['sql', 'diff']
}
}
},
preview: {
api: 'https://api.nuxt.studio'
}
},
ui: {
theme: {
colors: ['primary', 'secondary', 'info', 'success', 'warning', 'error', 'important']
}
},
routeRules: {
'/': { prerender: true },
'/api/templates.json': { prerender: true },
'/api/changelog.json': { prerender: true },
'/blog/rss.xml': { prerender: true },
'/changelog/rss.xml': { prerender: true },
// Redirects
'/docs/features': { redirect: { statusCode: 301, to: '/docs/features/ai' } },
'/docs/recipes': { redirect: { statusCode: 301, to: '/docs/recipes/hooks' } },
'/docs/storage/blob': { redirect: { statusCode: 301, to: '/docs/features/blob' } },
'/docs/storage/database': { redirect: { statusCode: 301, to: '/docs/features/database' } },
'/docs/storage/kv': { redirect: { statusCode: 301, to: '/docs/features/kv' } },
'/docs/server/api': { redirect: { statusCode: 301, to: '/docs/features/open-api' } },
'/docs/server/cache': { redirect: { statusCode: 301, to: '/docs/features/cache' } },
'/docs/server/logs': { redirect: { statusCode: 301, to: '/docs/getting-started/server-logs' } }
},
future: {
compatibilityVersion: 4
},
compatibilityDate: '2025-02-11',
nitro: {
prerender: {
crawlLinks: true,
routes: ['/'],
// For CF trailing slash issue
autoSubfolderIndex: false
}
},
vite: {
plugins: [
yaml()
]
},
typescript: {
strict: false
},
cloudflareAnalytics: {
token: '469b1f7049f14941acef0d0262a07ab3',
scriptPath: false
},
llms: {
domain: 'https://hub.nuxt.com',
title: 'NuxtHub Documentation for LLMs',
description: 'NuxtHub helps you build and deploy full-stack Nuxt applications globally on your Cloudflare account.',
full: {
title: 'NuxtHub Complete Documentation',
description: 'The complete NuxtHub documentation, blog posts and changelog written in Markdown (MDC syntax).'
}
}
})