-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
120 lines (118 loc) · 2.39 KB
/
nuxt.config.ts
File metadata and controls
120 lines (118 loc) · 2.39 KB
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
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import tailwindcss from '@tailwindcss/vite';
const currentDir = dirname(fileURLToPath(import.meta.url));
export default defineNuxtConfig({
nitro: {
// preset: 'github-pages',
preset: process.env.PRESET,
},
app: {
// baseURL: process.env.BASE_URL || '/comforthrmdocs/',
baseURL: process.env.NUXT_APP_BASE_URL ?? '/',
head: {
link: [
{ rel: 'icon', type: 'image/svg', href: '/logo_icon_brand_512.png' },
],
},
},
ssr: true,
devtools: { enabled: true },
modules: [
'shadcn-nuxt',
'@vueuse/nuxt',
'@ztl-uwu/nuxt-content',
'@nuxt/image',
'@nuxt/icon',
'@nuxtjs/color-mode',
'nuxt-og-image',
'@nuxt/scripts',
'@nuxtjs/i18n',
'@nuxt/fonts',
],
shadcn: {
prefix: 'Ui',
componentDir: join(currentDir, './components/ui'),
},
components: {
dirs: [
{
path: './components',
ignore: ['**/*.ts'],
},
],
},
i18n: {
bundle: {
optimizeTranslationDirective: false,
},
strategy: 'prefix_except_default',
},
colorMode: {
classSuffix: '',
disableTransition: true,
},
css: [
join(currentDir, './assets/css/themes.css'),
// '~/assets/css/tailwind.css',
join(currentDir, './www/assets/css/tailwind.css'),
join(currentDir, './assets/css/custom.css'),
],
content: {
documentDriven: true,
highlight: {
theme: {
default: 'github-light',
dark: 'github-dark',
},
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
},
navigation: {
fields: [
'icon',
'navBadges',
'navTruncate',
'badges',
'toc',
'sidebar',
'collapse',
'editLink',
'prevNext',
'breadcrumb',
'fullpage',
],
},
experimental: {
search: {
indexed: true,
},
},
},
icon: {
clientBundle: {
scan: true,
sizeLimitKb: 512,
},
},
fonts: {
defaults: {
weights: ['300 800'],
},
},
typescript: {
tsConfig: {
compilerOptions: {
baseUrl: '.',
},
},
},
vite: {
plugins: [
tailwindcss(),
],
optimizeDeps: {
include: ['debug'],
},
},
compatibilityDate: '2025-05-13',
});