-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
140 lines (129 loc) · 3.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
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
const url = import.meta.env.SITE_URL;
const name = "UI Doc Starter";
const description =
"A Nuxt.js starter template for creating a documentation website. Built with UI Thing & Nuxt Content.";
const locale = "en";
export default defineNuxtConfig({
devtools: { enabled: true },
future: { compatibilityVersion: 4 },
modules: [
"@nuxt/content",
"@nuxtjs/tailwindcss",
"@nuxtjs/color-mode",
"@vueuse/nuxt",
"@nuxt/icon",
"@samk-dev/nuxt-vcalendar",
"@vee-validate/nuxt",
"@morev/vue-transitions/nuxt",
"@nuxt/image",
"@aksharahegde/nuxt-glow",
"v-wave/nuxt",
"@nuxt/eslint",
"@nuxtjs/seo",
"@vite-pwa/nuxt",
"@nuxt/fonts",
],
icon: {
clientBundle: { scan: true, sizeLimitKb: 0 },
},
tailwindcss: { exposeConfig: true },
colorMode: { classSuffix: "" },
eslint: { config: { stylistic: false } },
imports: {
imports: [
{ from: "tailwind-variants", name: "tv" },
{ from: "tailwind-variants", name: "VariantProps", type: true },
{
from: "vue-sonner",
name: "toast",
as: "useSonner",
},
],
},
pwa: {
includeAssets: ["favicon.ico", "robots.txt"],
manifest: {
name,
short_name: name,
description,
theme_color: "#3b82f6",
lang: locale,
icons: [
{
src: "/icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "any",
},
{
src: "/icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
src: "/icons/pwa-maskable-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable",
},
{
src: "/icons/pwa-maskable-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
},
app: {
head: {
titleTemplate: `%s - ${name}`,
script: [
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/pdfmake.min.js",
defer: true,
},
{
src: "https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.12/vfs_fonts.min.js",
defer: true,
},
],
},
},
build: { transpile: ["vue-sonner", "shiki"] },
content: {
documentDriven: true,
markdown: { toc: { depth: 3 } },
navigation: { fields: ["icon"] },
highlight: {
langs: ["dockerfile", "js", "ts", "css", "html", "vue", "bash", "md", "mdc", "yaml"],
theme: {
default: "min-light",
dark: "night-owl",
},
},
},
site: {
url,
name,
description,
defaultLocale: locale, // not needed if you have @nuxtjs/i18n installed
},
schemaOrg: {
identity: {
name,
url,
description,
type: "Organization",
logo: `${url}/icon.png`,
},
},
sitemap: {
autoLastmod: true,
},
compatibilityDate: "2024-11-07",
nitro: {
compatibilityDate: "2024-11-07",
},
});