-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
53 lines (46 loc) · 1.02 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
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
extends: ["@nuxt/ui-pro"],
modules: [
"@nuxt/content",
"@nuxt/image",
"@nuxt/ui",
"@vueuse/nuxt",
"nuxt-og-image",
],
site: {
url: "https://kirby.tools",
},
content: {
highlight: {
theme: {
light: "github-light",
default: "github-light",
dark: "github-dark",
},
langs: ["json", "bash", "yaml", "php"],
},
},
image: {
quality: 80,
format: ["webp"],
},
hooks: {
// Define `@nuxt/ui` components as global to use them in `.md`
"components:extend": (components) => {
const globals = components.filter((c) =>
["UBadge"].includes(c.pascalName),
);
for (const c of globals) c.global = true;
},
},
routeRules: {
"/docs": { redirect: "/docs/live-preview", prerender: false },
},
nitro: {
prerender: {
crawlLinks: true,
routes: ["/", "/live-preview", "/content-translator", "/api/search.json"],
},
},
});