-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
nuxt.config.ts
152 lines (138 loc) · 3.35 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
experimental: {
viewTransition: true,
},
nitro: {
prerender: {
autoSubfolderIndex: false,
},
},
devtools: { enabled: true, timeline: { enabled: true } },
modules: [
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@vueuse/nuxt",
"nuxt-icon",
"@vee-validate/nuxt",
"@morev/vue-transitions/nuxt",
"@nuxt/content",
"nuxt-swiper",
"@nuxt/image",
"@nuxtjs/seo",
],
content: {
ignores: ["/1.client-releases/images", "\\.html$", "CNAME"],
highlight: {
theme: {
// Default theme (same as single string)
default: "github-light",
// Theme used if `html.dark`
dark: "github-dark",
// Theme used if `html.sepia`
sepia: "monokai",
},
},
experimental: {
search: {
options: {
fields: ["title", "content", "titles"],
storeFields: ["title", "content", "titles"],
searchOptions: {
prefix: true,
fuzzy: 0.2,
boost: {
title: 4,
content: 2,
titles: 1,
},
},
},
},
},
navigation: { fields: ["icon", "releaseNo", "tags"] },
markdown: {
toc: { depth: 5, searchDepth: 4 },
anchorLinks: { depth: 3 },
},
sources: {
documentation: {
prefix: "/docs",
driver: "github",
repo: "ciderapp/cider-docs",
branch: "main",
dir: "/",
token: process.env.GITHUB_PAT,
},
changelogs: {
prefix: "/changelogs",
driver: "github",
repo: "ciderapp/changes",
branch: "main",
dir: "/",
token: process.env.GITHUB_PAT,
},
},
},
site: {
url: "https://cider.sh",
name: "Cider Collective",
description:
"A community-ran and maintained software company focused on creating the best experience for end users. Home of Cider, Connect, Remote.",
defaultLocale: "en",
},
seo: {
fallbackTitle: true,
},
sitemap: {
strictNuxtContentPaths: true,
sources: ["/api/__sitemap__/urls"],
},
routeRules: {
"/": { prerender: true },
"/downloads": { redirect: "/downloads/client" },
"/downloads/client": { prerender: true },
"/changelogs": { prerender: true },
"/changelogs/**": { isr: 60 },
"/docs": { redirect: "/docs/client/rpc" },
"/docs/**": { isr: 60 },
"/downloads/remote": { prerender: true },
"/remote": { redirect: "/downloads/remote" },
"/marketplace": { redirect: "https://marketplace.cider.sh" },
"/o": { redirect: "/api/v1/open" },
"/p": { redirect: "/api/v1/play" },
},
css: ["~/assets/css/styles.scss"],
tailwindcss: {
exposeConfig: true,
},
colorMode: {
preference: "dark",
fallback: "dark",
hid: "nuxt-color-mode-script",
globalName: "__NUXT_COLOR_MODE__",
componentName: "ColorScheme",
classSuffix: "",
storageKey: "nuxt-color-mode",
},
typescript: {
shim: false,
},
imports: {
imports: [
{
from: "tailwind-variants",
name: "tv",
},
{
from: "tailwind-variants",
name: "VariantProps",
type: true,
},
],
},
compatibilityDate: "2024-08-18",
});